TanStackT
TanStack10mo ago
1 reply
few-sapphire

Testing react query useSuspenseQuery hook

I am trying to test useSuspenseQuery hook independently without any components.
I followed the blog post here to test useQuery and it doesn't work for SuspenseQuery if I add error state or isLoading state
https://tkdodo.eu/blog/testing-react-query
Let's take a look at how to efficiently test custom useQuery hooks and components using them.
Testing React Query
Was this page helpful?