T
TanStack3y ago
adverse-sapphire

Difference between tanstack and react query npm package

Hi Team, I am confused what is the difference between these packages and why is the react query one still on v3? Should we move to the @tanstack package or will react query be updatet as well? https://www.npmjs.com/package/@tanstack/react-query https://www.npmjs.com/package/react-query
npm
@tanstack/react-query
Hooks for managing, caching and syncing asynchronous and remote data in React. Latest version: 4.6.1, last published: a day ago. Start using @tanstack/react-query in your project by running npm i @tanstack/react-query. There are 73 other projects in the npm registry using @tanstack/react-query.
npm
react-query
Hooks for managing, caching and syncing asynchronous and remote data in React. Latest version: 3.39.2, last published: 2 months ago. Start using react-query in your project by running npm i react-query. There are 931 other projects in the npm registry using react-query.
6 Replies
eastern-cyan
eastern-cyan3y ago
react-query goes until version 3. since version 4, it is: @tanstack/react-query and @tanstack/react-query-devtools etc
eastern-cyan
eastern-cyan3y ago
Announcing TanStack Query v4 | TanStack Blog
We're excited to announce the next version of TanStack Query, previously known as react-query 🎉. The rebranding and restructuring to a monorepo now finally allows us to bring the joy of react-query to other frameworks, like vue, svelte or solid.
adverse-sapphire
adverse-sapphireOP3y ago
Thank you for the answer! 🙂
metropolitan-bronze
metropolitan-bronze3y ago
is v3 end of life? no more support?
eastern-cyan
eastern-cyan3y ago
I haven't gotten any questions for v3 🤷‍♂️
metropolitan-bronze
metropolitan-bronze3y ago
haha np i was just curious. i do plan to update to v4 just its a bit of an undertaking i think so havent got to it yet

Did you find this page helpful?