[docs] The variables
is wrongly obtained in the "Mutation Filters" predicate
example
#8578
Labels
documentation
Improvements or additions to documentation
Describe the bug
In the Mutation Filter docs section, there's a following example:
Unfortunately, the
mutation.options.variables
expression would yield an error, because thevariables
doesn't exist on theoptions
!query/packages/query-core/src/types.ts
Lines 1038 to 1072 in 12d4542
Instead, it exists on the
state
:query/packages/query-core/src/mutation.ts
Lines 23 to 38 in 12d4542
Steps to reproduce
predicate
usageExpected behavior
TanStack Query version
v5.64.1
TypeScript version
v5.7.3
The text was updated successfully, but these errors were encountered: