|
Download react-query/docs/framework/react/reference/queryOptions.md from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 756 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-query/docs/framework/react/reference/queryOptions.md
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-query/docs/framework/react/reference/queryOptions.md
-
curl -L -o queryOptions.md https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-query/docs/framework/react/reference/queryOptions.md
756 Bytes
metadata
id: queryOptions
title: queryOptions
queryOptions({
queryKey,
...options,
})
Options
You can generally pass everything to queryOptions that you can also pass to useQuery. Some options will have no effect when then forwarded to a function like queryClient.prefetchQuery, but TypeScript will still be fine with those excess properties.
queryKey: QueryKey- Required
- The query key to generate options for.
experimental_prefetchInRender?: boolean- Optional
- Defaults to
false - When set to
true, queries will be prefetched during render, which can be useful for certain optimization scenarios - Needs to be turned on for the experimental
useQuery().promisefunctionality