https://github.com/horprogs/react-query
An example of building the app using React Query.
https://github.com/horprogs/react-query
react-query
Last synced: about 1 month ago
JSON representation
An example of building the app using React Query.
- Host: GitHub
- URL: https://github.com/horprogs/react-query
- Owner: horprogs
- Created: 2021-09-20T22:28:29.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-11-15T18:15:51.000Z (over 2 years ago)
- Last Synced: 2025-04-02T02:40:33.652Z (about 2 months ago)
- Topics: react-query
- Language: TypeScript
- Homepage: https://react-query-example-3qmdb.ondigitalocean.app/
- Size: 4.59 MB
- Stars: 274
- Watchers: 1
- Forks: 60
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README

# Building the real app with React Query
An example of building the app using React Query.
**Demo:** https://react-query-example-3qmdb.ondigitalocean.app/
**Article:** https://www.smashingmagazine.com/2022/01/building-real-app-react-query/
The project is written in TypeScript and uses CRA, React query, axios mock server and material UI for easier prototyping.
## Functionality
- Login using email and password and indicate the logged user
- Show the list of next appointments with load more feature
- Show information about one particular appointment
- Save and view changes history
- Prefetch additional information
- Add and amend required jobs### Cases covered in the app:
- Deduping multiple requests for the same data into a single request

- Updating "out of date" data in the background (on window focus)

- Lazy loading list

- Prefetching the data

- Mutations and optimistic changes
_Success:_
_Fail:_

- Suspense and Error Boundaries

_The detailed article is coming soon..._