4 ms·
Redux means everything is global state which is terrible. A grid I render now has to have global state and most projects forget to do any cleanup - so you end u
by mosdl 8y ago
Redux means everything is global state which is terrible. A grid I render now has to have global state and most projects forget to do any cleanup - so you end up with all this junk in redux that isn't needed anymore, clogging up memory.
- abjorn 8y agoNothing is forcing you to put everything in Redux. If state only has relevance to a single component then keep it in that components state, Redux works perfectly fine with this approach.
- kerkeslager 8y agoAnd when the state has relevance to two components? Now it's okay to make it a global, because we can't be bothered to type "prop = value"? I'm just not buying this argument. People add Redux to projects because they intend to use it, and there's almost never a case where a piece of data is actually needed in enough places that it should be global. It's certainly not common enough to justify importing a whole framework for managing global state.