Installation
Check supported browsers
Suspensive Libraries are optimized for modern browsers. It is compatible with the following browsers config.
Chrome | >= 51 |
Firefox | >= 53 |
Edge | >= 18 |
Safari | >= 11 |
iOS | >= 11 |
Opera | >= 38 |
Depending on your environment, you might need to add polyfills. If you want to support older browsers, you need to transpile the library from node_modules yourselves.
Check supported react version
React | ^18 |
Add as Dependencies
@suspensive/react-query is available on npm.
From version 2.2.0 onwards, it supports both v4 and v5 of @tanstack/react-query. Depending on the version of @tanstack/react-query specified in your package.json dependencies, the appropriate version of @suspensive/react-query will be used automatically.
To use the latest stable version, run the following command.
npm install @suspensive/react-query @tanstack/react-query
To use @tanstack/react-query v4, run the following command.
@tanstack/react-query v4 supports lower version browsers compared to v5.
npm install @suspensive/react-query @tanstack/react-query@4
@suspensive/react-query internally uses @tanstack/react-query v4 or v5 as peerDependencies. Therefore, ensure that the correct version of @tanstack/react-query is installed in your package.json dependencies. The reasons are explained in Why Use This?.