DEV Community


Discussion on: useReducer instead of useState while calling APIs!

stereoplegic profile image
Mike Bybee • Edited

Or React Query. But yes, separate server fetching from local state.

rexgalilae profile image

This! No need to reinvent the wheel every time you want an API dependent state variable

flexbox profile image
David Leuliette 🤖 • Edited

Do you know what are the differences between swr and react-query?

I use both and I have no idea how to pitch the differences 😆

Thread Thread
stereoplegic profile image
Mike Bybee

Tanner Linsley (author of React Query) details the differences here (also comparing Apollo and RTK Query) much better than I can:

Some comments have been hidden by the post's author - find out more

Forem Open with the Forem app