Hacker News new | ask | show | jobs
by hesarenu 1870 days ago
How does RTK query compare with react-query[1]. I replaced my redux stack with react-query and simple usestate/usecontext.

[1]https://react-query.tanstack.com/

1 comments

RTK Query was heavily inspired by React Query, Apollo, Urql, and SWR, in terms of API design and problem space. But, it has some unique differences in approach as far as specifying what API endpoints you interact with.

See these links for comparison discussions and info:

- https://rtk-query-docs.netlify.app/introduction/comparison

- https://www.reddit.com/r/reactjs/comments/mggpr7/rtk_query_v...