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.
1 parent d6ea2f1 commit 6fff343Copy full SHA for 6fff343
packages/query-core/src/utils.ts
@@ -169,9 +169,7 @@ export function functionalUpdate<TInput, TOutput>(
169
updater: Updater<TInput, TOutput>,
170
input: TInput,
171
): TOutput {
172
- return typeof updater === 'function'
173
- ? (updater as (_: TInput) => TOutput)(input)
174
- : updater
+ return resolveOption(updater, input)
175
}
176
177
export function isValidTimeout(value: unknown): value is number {
0 commit comments