Course lesson
Use fetch, axios, ky, or any other promise-based library within useQuery hook
As long as whatever you're using to fetch data returns a Promise, you can use it in the useQuery hook.
- Duration
- 2 min
- Access
- Included
- Transcript
- Retained from source evidence
As long as whatever you're using to fetch data returns a Promise, you can use it in the useQuery hook.
So when fetching data, you can use native fetch, axios, ky, or whatever else!