Skip to content
Discussion options

You must be logged in to vote

you're not showing how you use the queryClient in the testing code. Are you sure that the queryClient where you set the data to is the one that is used to render the component?

Also, are you sure that the data nesting is necessary? Again, can't tell because I'm not seeing the actual useQuery call.

It's always hard to help with just code snippets and screenshots. Best would be a minimum codesandbox reproduction.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@p-iknow
Comment options

@TkDodo
Comment options

@p-iknow
Comment options

Answer selected by p-iknow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants