We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
updateQueryData
1 parent 8509dcd commit 2670c15Copy full SHA for 2670c15
docs/rtk-query/usage/manual-cache-updates.mdx
@@ -36,6 +36,13 @@ Use cases for manual cache updates include:
36
- Debouncing a large number of mutations with immediate feedback as though they are being
37
applied, followed by a single request sent to the server to update the debounced attempts
38
39
+:::note
40
+`updateQueryData` is strictly intended to perform _updates_ to existing cache entries,
41
+not create new entries. If an `updateQueryData` thunk action is dispatched that corresponds to
42
+no existing cache entry for the provided `endpointName` + `args` combination, the provided `recipe`
43
+will not be called, and no `patches` or `inversePatches` will be returned.
44
+:::
45
+
46
## Recipes
47
48
### Optimistic Updates
0 commit comments