Skip to content

Commit 804e37c

Browse files
committed
update
1 parent cbfb2fa commit 804e37c

File tree

1 file changed

+1
-1
lines changed
  • packages/clients/tanstack-query/src

1 file changed

+1
-1
lines changed

packages/clients/tanstack-query/src/react.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,9 +491,9 @@ export function useInternalMutation<
491491
const finalOptions = { ...options, mutationFn };
492492
const invalidateQueries = options?.invalidateQueries !== false;
493493
const optimisticUpdate = !!options?.optimisticUpdate;
494+
const { logging } = useContext(QuerySettingsContext);
494495

495496
if (operation) {
496-
const { logging } = useContext(QuerySettingsContext);
497497
if (invalidateQueries) {
498498
setupInvalidation(
499499
model,

0 commit comments

Comments
 (0)