Skip to content

alincadariu/react-query-from-scratch

Repository files navigation

React query from scratch

  • to run: npm i && npm run dev
  • go to https://crudcrud.com and get your free api key and replace it in main.tsx file.

We’ll cover the following:

  • useQuery – with loading, data, and error states

  • Caching – using a query key

  • Stale Time – control when data becomes “stale”

  • Invalidation

  • Mutations – POST/PUT/DELETE with cache updates

🌟 Bonus Features

  • Suspense

  • Refetch Intervals – auto-refresh data on a timer

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors