5 ms·
> Sloppy developers are sloppy in redux as well. Agreed. But the mess they make in MobX is in my experience much more difficult to clean up. What I meant with
by Drdrdrq 7y ago
> Sloppy developers are sloppy in redux as well.
Agreed. But the mess they make in MobX is in my experience much more difficult to clean up.
What I meant with render method changes is that mobx tracks access to state during a call to render (which means that anything that might influence rendering, must be accessed inside render). It seems like it's not a big deal, but it can lead to surprising bugs if one is not careful. Redux otoh uses props to pass data to render, which is much more explicit and allows regular react dev tools to be used.
I might have some details wrong - I met MobX a year ago with two legacy apps and it was a hell to maintain. Still is actually, I'm just not that involved in these projects anymore. It's magic, and not in a good way. For new projects we use Redux Toolkit, which strikes a nice balance between verbosity and being explicit.