4 ms·
What are the quirks?
by manx 4y ago
What are the quirks?
- brundolf 4y ago1. It's an add-on, so eg. you have to manually wrap each React component in an observer(), it doesn't really interact with hooks (triggering or responding to updates), etc 2. It has some minor gotchas around object cloning, proxies, memory usage, and stuff like eg. certain functions have to be pure But in practice these aren't big barriers; once you get used to them they fade into the background. And I've made stuff with MobX that I'm not sure I could have built with any other state management system. It's also one of the best-performing ways to write React apps because it can be absolutely surgical about only re-rendering exactly the things that need to update, even moreso than the official state management system