DEV Community

loading...

Discussion on: Data fetching in Next.js — How To Use SWR

Collapse
shahryar_rp profile image
Shahryar

Thanks for your great article about this subject.
I have been searching about state management in react application for about 1 mounth now and Im looking to find a better aproach.
For long time everyone was talking about the react-redux approach, but now it seems that the server cache management approach is better choice.
so my question is, when its better to use redux in our apps, and when its better to use server cache management library like swr or react-query?

thanks in advance