Use fetch, axios, ky, or any other promise-based library within useQuery hook

InstructorTomasz Ducin

Share this video with your friends

Send Tweet

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!