File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments