Skip to content
Discussion options

You must be logged in to vote

that's how suspense works. React sees that one hook wants to suspend, so it does. It doesn't know that there will be another hook that suspends. To get that, you'd need to split the useQuery calls up into multiple components, because they run in parallel in the same boundary. useQueries also fixes this.

See: https://tkdodo.eu/blog/seeding-the-query-cache#suspense-waterfalls

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@csantos-nydig
Comment options

Answer selected by csantos-nydig
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