Skip to content

Abeinevincent/react-query-fetch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Data fetching in react-query

Article: https://dev.to/abeinevincent/data-fetching-from-an-api-using-react-query-usequery-hook-explained-in-plain-english-4eei

Functionality

  • Basic data fetch using useQuery hook from react-query
  • Error handling in react-query
  • Refetching data in the background on window focus and on reconnect
  • Fetching data using a global query function
  • Paginated queries

Technologies and tools usedn

This project uses vite as build tool/command, react 18 and JavaScript.

Contributing

  1. Fork it (https://github.com/abeinevincent/react-query-fetch/fork)
  2. Create your feature branch (git checkout -b feature/sampleFeature)
  3. Commit your changes (git commit -m 'Add some sampleFeature')
  4. Push to the branch (git push origin feature/sampleFeature)
  5. Create a new Pull Request

Licence

MIT

Releases

No releases published

Packages

No packages published