Docs: Optimistic Updates issue
Hi everyone! I have an issue with optimistic docs example.
In docs it says the following:
I read it as if I return data in
Would appreciate any help and clarification on this issue, thanks!
In docs it says the following:
I read it as if I return data in
onMutate function, onMutateResult will always be defined in onError | onSuccess | onSettled functions. And docs example suggests it also should work that way (first screenshot). But my result always can be undefined in every function (screenshot 2 and 3). Would appreciate any help and clarification on this issue, thanks!


