react-query-questions
solid-query-questions
table-questions
virtual-questions
router-questions
react-charts-questions
ranger-questions
vue-query-questions
svelte-query-questions
bling-questions
form-questions
angular-query-questions
start-questions
db-questions
start-showcase
router-showcase
📣-announcements
`useSuspenseQuery` is blocking my upgrade to v5, any alternative solutions?
suspense: boolean
was removed as an option on useQuery
and replaced with separate hooks like useSuspenseQuery
.
I'm using graphql-codegen
to generate all of my queries automatically. But of course they are all generated as useQuery
.
In V4, I was able to simply pass an option to make my queries use suspense
to make queries use suspense
....useInfiniteQuery jump to specific data
checking my understanding: i cannot chain queries without writing them twice for hook and async fn ?
Best practice for auditing requests?
Retrieving the token from router context into an useGraphQL() wrapper around useQuery()
Best way to handle multiple api endpoint calls for dashboard
Custom query hook and type for placeholderData option
placeholderData
option that I'm using with keepPreviousData
helper function.
We've got our own basic UseQueryOption
type defined with a few of the common options (e.g. enabled
, keepPreviousData
) that we use with our custom query hooks. Until now, keepPreviousData
was simply a boolean, but now placeholderData
is a generic type that depends on the response type.
What's the best way to type it? Right now, most of our custom query hooks are typed as:...Propagate changes when using `queryClient.setQueryData`
queryClient.setQueryData
even though it updates the data doesn't send an update to affected hooks.
Here is my workaround but I doesn't feel nice to use. Is it intended behavior ?
...useInfiniteQuery & Types
Mock mutateAsync in jest
How to Fetch Specific Data for an ID in Details Component in React using React Router
<Link to={`/city/id${city.id}`}> {city.name}</Link>
<Link to={`/city/id${city.id}`}> {city.name}</Link>
Query devtools giving `Uncaught Error: No QueryClient set, use QueryClientProvider to set one`

'lastPage' is of type 'unknown'.

What is the expected behaviour of `setQueryData(aKey, undefined)` on v5 according to documentation?
If the value is undefined, the query data is not updated.
But in my case the data is set to undefined
. Does not follow the doc's description...Realtime fetching in react query.
Offline Cache Not Working with UseSuspenseQuery
V5: Using useSuspenseQueries with enabled = false
enabled
is not supported by useSuspenseQuery
(though nothing is documented in migration guide). I was wondering how one might migrate from using useQueries
with suspense=true, and some queries being conditional to the new useSuspenseQueries
.
V4
```...separated function cannot be added as a queryFunction
Help needed in Nextjs API + react-query rejection handling approach
nextjs@14.0.3
+ react-query v5
and im using the Pages
routes not the app folder.
In one page i'm using react-query to fetch some data
...