Skip to content

Commit 87398fd

Browse files
committed
refactor(query-core): replace functionalUpdate with resolveOption in QueryClient
Replace functionalUpdate usage with resolveOption for consistency with the new unified value-or-function resolution pattern.
1 parent aaaaf3c commit 87398fd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/query-core/src/queryClient.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import {
2-
functionalUpdate,
32
hashKey,
43
hashQueryKeyByOptions,
54
noop,
@@ -197,7 +196,7 @@ export class QueryClient {
197196
defaultedOptions.queryHash,
198197
)
199198
const prevData = query?.state.data
200-
const data = functionalUpdate(updater, prevData)
199+
const data = resolveOption(updater, prevData)
201200

202201
if (data === undefined) {
203202
return undefined

0 commit comments

Comments
 (0)