Comments (2)
改好了,inited也行了
from san.
这个问题不fix。如果要做的话,必须在渲染过程对所有数据变更先记录,在下一个microtask再重新触发,成本太大了。
建议在created或者attached里dispatch。
但是,很不幸,组件 数据变更时更新视图的行为 初始化是在attached中的,对于组件树,attached触发顺序是先子后父。所以,在3.1.3中,即使子组件在attached中dispatch,父组件set data,但是 数据变更时更新视图的行为 还没有挂载,所以视图也不会更新。
我看看这事怎么改
from san.
Related Issues (20)
- 请管理员帮忙删除 此 Issue HOT 1
- 循环表格行,表格行中的输入框在数据更新后重置了
- 表达式中的函数必须是先在组件中声明的吗? HOT 2
- 请问san-native后续有开源的计划么? HOT 2
- 条件判断 s-else 节点缺失 props class HOT 1
- 关于调试源码过程中 Data.prototype.splice 方法中的一点疑惑 HOT 2
- san-ssr 可以支持sourcemap吗?
- 有为 vite 提供 san 单文件组件支持的插件吗?
- 在特定情况下created内的数据操作不生效 HOT 2
- 如何使用typescript定义s-ref的类型? HOT 1
- 引入svg标签linearGradient报错
- san支持动态组件吗? HOT 1
- lint: 模板指令是否有推荐的编码规范 HOT 1
- 移除 IE 的支持 HOT 1
- HTML模板可以支持JSX吗 HOT 1
- 条件渲染时,只给其中一个分支标记具名插槽,但其他分支也会被渲染进该具名插槽 HOT 1
- san反解遍历子元素,会移除由空格或换行组成的文本节点,造成页面抖动 HOT 1
- Example中webpack-cli依赖需更新 HOT 1
- 关于组件的 attribute 透传 HOT 46
- San使用SSR之后和未使用SSR的San项目父子组件生命周期执行顺序不一样是设定好的嘛? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from san.