Created by Piyush Garg about a year ago
No description provided
Given that this is a part of design patterns - it is important to first explain what problems react-query solves. For example - the above example could be done using useEffect to fetch the data. So why this approach, how does this compare with RTK Query ? Why is React Query your favorite ?
More deeper coverage expected for the entire state management section.
In general design patterns are solutions to commonly occurring problems - hence it is important to first explain what the problem is and how a pattern helps to solve that.
Hi @Piyush Garg
I am confused between useSWR and React Query. Caching is also available in useSWR then what's the difference between them and which is the best?
sync await needs to practice is there any tutorial in codedamn for it , if yes kindly provide me it's link - thanks
Can you give an example of use case where we can use both react-query and react-redux. Usually it is said to use only 1 state management library at a time. So is it ok to use react-query alongside react-redux or context-api?