DEV Community

loading...

Discussion on: Methods to Fetch in React

Collapse
sgolovine profile image
Sunny Golovine

I disagree, libraries like React Query accomplish very specific tasks. I found that RQ works best when you have an app with "Feeds" or other lists that pull down from API's, RQ can effectively handle things like loading, infinite loading, pagination, etc. All these things are an absolute PIA to implement with regular fetch or axios.

Thread Thread
ivanjeremic profile image
Ivan Jeremic

I didn't say don't use it for this type of tasks, I agree with you and I use it myself for all projects. The problem is people started to create queries with RQ for small things that can be done locally inside a useEffect