As these are downloadable from npm with their names with different sizes. In which scenarios we must downloads tanstack react query and for which react-query.
4 Answers
As far as I can tell the author chose to publish the new v4 version on @tanstack/react-query whilst keeping the v3 version on react-query.
So most likely, you want the latest version, which is @tanstack/react-query.
This is detailed here: https://tanstack.com/query/latest/docs/framework/react/guides/migrating-to-react-query-4#react-query-is-now-tanstackreact-query
5 Comments
Tanstack Query, formerly known as React Query v3 (react-query), aims to make the React Query async state manager, available to frameworks beyond React, and comes with a variety of new features.
For example, Tanstack Query exists now for:
- React
@tanstack/react-query(React Query v4) - Svelte
@tanstack/svelte-query - Solid
@tanstack/solid-query - Vue
@tanstack/vue-query
Comments
@tanstack/react-query is just the V4 of react-query , you might wanna check up the changelog in order to see what happened https://tanstack.com/query/v4/docs/react/guides/migrating-to-react-query-4 But generally the syntaxes and processes are the same .
Comments
they are the same, from the same company. just changed the named upon v4. update. https://tanstack.com/query