4 ms·
Explain? Redux isn't even close to observables in other systems. It's the immutable pattern that's a life changer if anything.
by mlsarecmg 10y ago
Explain? Redux isn't even close to observables in other systems. It's the immutable pattern that's a life changer if anything.
- Sophistifunk 10y agoRedux and co are still the same pattern fundamentally, it's just that the implementing code is spread throughout your stack, instead of in an "Observable" implementation. That combined with an optimisation allowing identity and state equality to be conflated.
- mlsarecmg 10y agoI don't know what you're saying, this is the complete opposite. Redux was made to centralize, because observables are literally spread throughout the stack. The entire logic is combined in composeable containers, later wrapped in a single store. Flux pattern is also completely different in how it works, there's almost no similarity whatsoever. http://iweave.com/assets/blog/mvc_v_flux.png http://iweave.com/assets/blog/mvc_v_flux.png
- LeoNatan25 10y agoThat's not MVC. That's the MVC Facebook attempts to show in a ridiculous presentation that finally convinced me how much they had to misinform to get these silly concepts any legitimacy.
- mlsarecmg 10y agoThat is exactly how a .NET WPF application worked, and that's also how MVC communicates in general. The flux pattern is very different from it.
- Sophistifunk 10y agoRedux makes every single component check nextProps.foo !== this.props.foo, instead of just having them notified when it changes.
- mlsarecmg 10y agoThat is the whole point of immutable state, and it is very effective because parent props are also notified through shallow checks, while observables have to bubble up and keep track of their relations. You also seem to agree now that both are completely different.