Skip to content

Unexpected useSuspenseQuery behavior with placeholderData #6950

Answered by TkDodo
HJZzzzz asked this question in Q&A

You must be logged in to vote

right, I didn't really account for having this set globally. I think we need to explicitly set placeholderData: undefined in useSuspenseQuery here:

return useBaseQuery(
{
...options,
enabled: true,
suspense: true,
throwOnError: defaultThrowOnError,
},

could you PR that ?

Replies: 1 comment 3 replies

You must be logged in to vote
3 replies
@HJZzzzz

@TkDodo

@HJZzzzz

Answer selected by HJZzzzz
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