You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- it's args similar with `queryClient.setQueryData` but without `queryKey`
290
289
291
-
## createImmutableQuery
292
-
293
-
If the resource is immutable, no matter how many times we request it again, it will never change. In this case, we can disable all automatic re-requests for it.
294
-
ReactQueryKit provides a helper function `createImmutableQuery` to mark a resource as immutable.
This has the same effect as setting the `suspense` option to `true` in the query config, but it works better in TypeScript, because `data` is guaranteed to be defined (as errors and loading states are handled by Suspense- and ErrorBoundaries).
@@ -500,9 +475,11 @@ You can extract the TypeScript type of any custom hook with `inferVariables` or
0 commit comments