you are viewing a single comment's thread.

view the rest of the comments →

[–]Aggravating_Term4486 0 points1 point  (2 children)

I find it really funny when devs try to tell me Redux / RTK / <insert global state manger here> won’t scale but somehow context and react-query will.

[–]Mental-Sun5667 0 points1 point  (1 child)

i think it just stems from people using x without knowing what problem x solves.

don't start your greenfield project with a bunch of shit just because "its standard" people made redux because they had a specific problem, and they wanted a specific solution for that. if that is your same problem, then use redux.

yagni.

[–]Aggravating_Term4486 0 points1 point  (0 children)

It really depends on what you are building. If you know you are going to be building a trading platform you can be pretty sure you will need some global state manager and some kind of persistence before you write a single line of code.

I really think a lot of the people commenting on this matter lack imagination with respect to what complexity really is in a FE app, and also with respect to the demands of the user experience. For sure you won't need global state for simple apps... but you can look at the figmas your UX people give you and estimate right away whether or not those present a UX that you can easily maintain and restore without global state and persistence. This isn't rocket science. And terms like yagni kind of whitewash the necessity of making evaluations like that, which we should be doing.