Stop using useQuery from React-Query !
In any web application, managing loading and error states is crucial. Displaying loading states keeps the user informed, but historically, this management can be tedious to implement manually.
React Query greatly simplifies the handling of loading st...
rouret.hashnode.dev4 min read
Reuel Teodoro
Wait I never heard of useSuspenseQuery? i tried looking into the docs and it just the says its same as useQuery? please explain? also does the hook always have to be inside the a component of a Suspense component? Because Im working on an codebase that has a Context Provider e.g a UserProvider and we export the 'data, isLoading, refetch' and use that everywhere in our code.