Skip to content
Source
Sign inSign up
TanStack/query
Open History to see the last commit

parallel-queries.md

12 lines607 Bytes

1---
2id: parallel-queries
3title: Parallel Queries
4ref: docs/framework/react/guides/parallel-queries.md
5replace: { 'react-query': 'preact-query', 'React': 'Preact' }
6---
7​
8[//]: # 'Info'
9​
10> When using Preact Query with compat's Suspense, this pattern of parallelism does not work, since the first query would throw a promise internally and would suspend the component before the other queries run. To get around this, you'll either need to use the `useSuspenseQueries` hook (which is suggested) or orchestrate your own parallelism with separate components for each `useSuspenseQuery` instance.
11​
12[//]: # 'Info'