News for hackers. Stuff that matters.
Re:None of my projects want to be SPAs by mosdl on Monday February 11, 2019 @11:33AM (#19135652)
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.
Re:None of my projects want to be SPAs by abjorn on Monday February 11, 2019 @12:25PM (#19136177)
Nothing 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.
Re:None of my projects want to be SPAs by kerkeslager on Monday February 11, 2019 @02:29PM (#19137472)
And 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.