React JS app with offline capabilities with TanStack Query v5 offline power as well caching mechanism
Here're some of the project's best features:
- demonstrate - fetching
- caching
- PWA app
- service workers
- parallel and serial req
- Mutations
- offline features
1. clone project
https://github.com/Nekromenzer/pwa-react-typescript.git
2. Install dependencies
npm install
3. start
npm start
Technologies used in the project:
- react js
- react router
- TanStack Query
- service workers
Official doc 👉 https://tanstack.com/query/latest/docs/framework/react/devtools
Github repo 👉 https://github.com/tanstack/query
Working with ts - https://tanstack.com/query/latest/docs/framework/react/typescript
-
**offline https://tanstack.com/query/latest/docs/framework/react/examples/offline
-
**request water falll https://tanstack.com/query/latest/docs/framework/react/guides/request-waterfalls
-
**use suspence https://tanstack.com/query/latest/docs/framework/react/reference/useSuspenseQuery
-
**background fecth https://tanstack.com/query/latest/docs/framework/react/guides/background-fetching-indicators
-
**auto refecth https://tanstack.com/query/latest/docs/framework/react/examples/auto-refetching
-
**bacthing req https://tanstack.com/query/v4/docs/framework/react/community/batching-requests-using-bathshit
-
**with web sockets https://tkdodo.eu/blog/using-web-sockets-with-react-query
-
**caching https://tanstack.com/query/v4/docs/framework/react/guides/caching
-
**Window focus fetching https://tanstack.com/query/latest/docs/framework/react/guides/window-focus-refetching
-
**Query invalidation https://tanstack.com/query/latest/docs/framework/react/guides/query-invalidation
2. https://www.whitespectre.com/ideas/how-to-build-offline-first-react-native-apps-with-react-query-and-typescript/