Content pfp
Content
@
0 reply
0 recast
0 reaction

Sayonara โœˆ๏ธ devcon ๐Ÿ‡น๐Ÿ‡ญ pfp
Sayonara โœˆ๏ธ devcon ๐Ÿ‡น๐Ÿ‡ญ
@sayo
Do you still use redux/mobx libraries ? If yes? Why is tanstack/react-query not enough for you?
2 replies
0 recast
3 reactions

rapha pfp
rapha
@rapharrrr
Nope. When there's a need for a state management library I'm using Zustand. But regarding react-query, one of the maintainers wrote this article about why you might not need it. The TLDR is (and I quote): "if you're starting a new application, and you're using a mature framework like Next.js or Remix that has a good story around data fetching and mutations, you probably don't need React Query." My project is getting bigger and bigger by the day (I'm using server components, server actions, react cache function, all Next's invalidation tools, etc) and I still haven't found a real use case for react query. Maybe I will at some point. https://tkdodo.eu/blog/you-might-not-need-react-query
1 reply
0 recast
1 reaction

aiiiden pfp
aiiiden
@aiiiden
I am trying to use global state less. I use recoil only for authentication or a few core state. React-query is my usual stack. It can manage server-status and also if I set staleTime to โ€œInfiniteโ€, It can be use as a global state :3
0 reply
0 recast
0 reaction