Skip to content

Commit 0321539

Browse files
committed
feat(queryClient): add setQueriesData utility
improve docs
1 parent 9ce8af1 commit 0321539

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/src/pages/reference/QueryClient.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ queryClient.setQueryData(queryKey, updater)
188188
**Options**
189189

190190
- `queryKey: QueryKey`: [Query Keys](../guides/query-keys)
191-
- `updater: unknown | (oldData: TData | undefined) => TData`
191+
- `updater: TData | (oldData: TData | undefined) => TData`
192192
- If non-function is passed, the data will be updated to this value
193193
- If a function is passed, it will receive the old data value and be expected to return a new one.
194194

@@ -233,8 +233,8 @@ queryClient.setQueriesData(queryKey | filters, updater)
233233
- `queryKey: QueryKey`: [Query Keys](../guides/query-keys) | `filters: QueryFilters`: [Query Filters](../guides/filters#query-filters)
234234
- if a queryKey is passed as first argument, queryKeys fuzzily matching this param will be updated
235235
- if a filter is passed, queryKeys matching the filter will be updated
236-
- `updater: TData | (oldData: TData | undefined) => TData` [setQueryData updater](#queryclientsetquerydata)
237-
- the updater will be called for each matching queryKey
236+
- `updater: TData | (oldData: TData | undefined) => TData`
237+
- the [setQueryData](#queryclientsetquerydata) updater function or new data, will be called for each matching queryKey
238238

239239
## `queryClient.invalidateQueries`
240240

0 commit comments

Comments
 (0)