2 ms·
Correct, but it's the same with alternatives. E.g: redux uses a react provider to inject the data into the component tree because of this. Vuex does the same f
by BiteCode_dev 7y ago
Correct, but it's the same with alternatives.
E.g: redux uses a react provider to inject the data into the component tree because of this. Vuex does the same for vue.
- Epskampie 7y agoUntrue. Using Mobx your model can be defined completely independently from your view layer like React.
- iovrthoughtthis 7y agoNo it isn’t. React will simply render the object you give it. That means that React doesn’t need to know when data changes, it simply renders the ui, diffs it to the current ui and applys the changes. Unless your using component state but even then, it’s the rendering that measures change. The act of updating the state just lets React know “time to see if anything important changed”. Vue seems to tra Co data changes granularly which means it needs to understand the change at the point if mutation. This means it needs control of the data you want to render.