News for hackers. Stuff that matters.
Re:The new wave of React state management by cehrlich on Saturday July 02, 2022 @12:45PM (#31960508)
Agree completely, React Query has made it so much easier to build any kind of app that deals with server state, stuff that would have been extremely challenging to write in the past is now just a couple of lines and works better than before.

I personally like using Jotai (if I just want a better version of React Context) or Zustand (if I need a bit more than that) for “client state” alongside React Query, but I’ve also built projects where I didn’t need a client state management solution at all.

Re:The new wave of React state management by erikpukinskis on Sunday July 03, 2022 @11:29AM (#31968436)
What’s wrong with React Context in your opinion?
Re:The new wave of React state management by cehrlich on Monday July 04, 2022 @12:32PM (#31978891)
For anything even slightly complex you need to either use multiple providers or be very careful about rerenders