|
Download react-query/docs/framework/react/reference/useSuspenseQueries.md from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 884 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-query/docs/framework/react/reference/useSuspenseQueries.md
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-query/docs/framework/react/reference/useSuspenseQueries.md
-
curl -L -o useSuspenseQueries.md https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-query/docs/framework/react/reference/useSuspenseQueries.md
884 Bytes
metadata
id: useSuspenseQueries
title: useSuspenseQueries
const result = useSuspenseQueries(options)
Options
The same as for useQueries, except that each query can't have:
suspensethrowOnErrorenabledplaceholderData
Returns
Same structure as useQueries, except that for each query:
datais guaranteed to be definedisPlaceholderDatais missingstatusis eithersuccessorerror- the derived flags are set accordingly.
Caveats
Keep in mind that the component will only re-mount after all queries have finished loading. Hence, if a query has gone stale in the time it took for all the queries to complete, it will be fetched again at re-mount. To avoid this, make sure to set a high enough staleTime.
Cancellation does not work.