From Dev.to
Stop adapting axios to TanStack Query: a fetch client built for queryFn
TanStack Query doesn't care how you fetch. It only asks one thing of your queryFn: return data, throw on failure, and respect the AbortSignal. Most HTTP clients don't do that out of the box, so every...
