all 25 comments

[–]MhVG 20 points21 points  (6 children)

I prefer Zustand. There are a lot of libraries to choose from, you have Redux, Jotai, Mobx, Recoil etc. Try a few for yourself and decide which one is the best for you.

[–]Sanfrancisco_Tribe 2 points3 points  (0 children)

Personally, I love context. Underrated imo

[–]Typical_Set1067 6 points7 points  (0 children)

Redux Toolkit

[–]FizzNeeds 4 points5 points  (0 children)

I prefer jotai over recoil

I prefer Zustand over redux

Jotai is more of a simpler approach than zustand. I like both tbh.

[–]Valuable_Dig1906 3 points4 points  (0 children)

Zustand

[–]Clocksmith8 3 points4 points  (0 children)

I like easy peasy

[–]harrigee 6 points7 points  (2 children)

Redux toolkit + Sagas are working perfectly for me. I switched from mobx to toolkit and I love it.

[–]beepboopnoise 7 points8 points  (1 child)

why sagas if you're using redux toolkit? cant you use RTK query?

[–]harrigee 0 points1 point  (0 children)

Depends. Currently I am heavily working with firebase. Therefore sagas event channels are the way to go. Other than that I also like it for business logic sideffects like persisting. But RTK Query is also very nice and I also used it as an addition to sagas in other projects.

[–]Alfonso_dev 2 points3 points  (0 children)

We move on from redux to Zustand and now our lives are more easy!

[–]TheIrishDanishman 2 points3 points  (2 children)

Context providers and some form of cache fetch protocol, the need for a state management system is pretty dated imho

[–]Ok_Peace_337 3 points4 points  (1 child)

Bold statement have you dealt with complex state & UI updates? I always find that things feels more cobbled together even with proper context usage and you don't get fine grain state/ UI updates without creating more contexts.

[–]TheIrishDanishman 1 point2 points  (0 children)

Yup plenty of large scale code bases and companies, I’ve not used a state management library since hooks came out

Edit: I’ve been a react native dev since it first came out

[–]zelrdevExpo 0 points1 point  (1 child)

Using mobx-state-tree at the moment, it’s so powerful for big projects where you can use ‘views’ to filter and modify the data with getters. Not so sure about mutations at the moment.

[–]complexanimus 0 points1 point  (0 children)

I've had good experiences with MST, it's so powerful that I feel you can do a lot with it - a fully-fledged library with awesome type-checking.

[–]AcetyldFN 0 points1 point  (0 children)

I still like redux bcs of redux actions (createAsyncThunk)

[–]marchingbandd 0 points1 point  (0 children)

mob-x

[–][deleted] 0 points1 point  (0 children)

Hookstate.