{"id":21078801,"url":"https://github.com/horprogs/react-query","last_synced_at":"2025-04-09T09:09:33.799Z","repository":{"id":40759007,"uuid":"408618115","full_name":"horprogs/react-query","owner":"horprogs","description":"An example of building the app using React Query.","archived":false,"fork":false,"pushed_at":"2022-11-15T18:15:51.000Z","size":4818,"stargazers_count":274,"open_issues_count":2,"forks_count":60,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-02T02:40:33.652Z","etag":null,"topics":["react-query"],"latest_commit_sha":null,"homepage":"https://react-query-example-3qmdb.ondigitalocean.app/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/horprogs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-09-20T22:28:29.000Z","updated_at":"2025-03-25T08:38:33.000Z","dependencies_parsed_at":"2023-01-22T13:30:17.039Z","dependency_job_id":null,"html_url":"https://github.com/horprogs/react-query","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/horprogs%2Freact-query","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/horprogs%2Freact-query/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/horprogs%2Freact-query/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/horprogs%2Freact-query/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/horprogs","download_url":"https://codeload.github.com/horprogs/react-query/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248008630,"owners_count":21032556,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["react-query"],"created_at":"2024-11-19T19:42:22.724Z","updated_at":"2025-04-09T09:09:33.774Z","avatar_url":"https://github.com/horprogs.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![public/docs/logo.svg](public/docs/logo.svg)\n\n# Building the real app with React Query\n\nAn example of building the app using React Query.\n\n**Demo:** https://react-query-example-3qmdb.ondigitalocean.app/\n\n**Article:** https://www.smashingmagazine.com/2022/01/building-real-app-react-query/\n\nThe project is written in TypeScript and uses CRA, React query, axios mock server and material UI for easier prototyping.\n\n## Functionality\n\n- Login using email and password and indicate the logged user\n- Show the list of next appointments with load more feature\n- Show information about one particular appointment\n- Save and view changes history\n- Prefetch additional information\n- Add and amend required jobs\n\n### Cases covered in the app:\n\n- Deduping multiple requests for the same data into a single request\n\n\n  ![public/docs/deduping.gif](public/docs/deduping.gif)\n\n\n- Updating \"out of date\" data in the background (on window focus)\n                                          \n\n  ![public/docs/background_fetching.gif](public/docs/background_fetching.gif)\n\n\n- Lazy loading list\n                    \n\n  ![public/docs/load_more.gif](public/docs/load_more.gif)\n\n\n- Prefetching the data\n                \n\n  ![public/docs/prefetching.gif](public/docs/prefetching.gif)\n\n\n- Mutations and optimistic changes\n             \n_Success:_\n\n\n  ![public/docs/optimistic_changes_success.gif](public/docs/optimistic_changes_success.gif)\n\n\n_Fail:_\n\n  ![public/docs/optimistic_changes_fail.gif](public/docs/optimistic_changes_fail.gif)\n\n\n- Suspense and Error Boundaries\n\n\n![public/docs/suspense.gif](public/docs/suspense.gif)\n\n\n_The detailed article is coming soon..._\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhorprogs%2Freact-query","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhorprogs%2Freact-query","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhorprogs%2Freact-query/lists"}