setQueryData does not pass existing data
I'm running into very strange behavior where calling
In the above code, the first console.log (L5) includes
setQueryData does not include the existing data in the updater callback.In the above code, the first console.log (L5) includes
data, but the oldData inside the setQueryData callback is undefined. I have this code running in two different places with identical invocations, just different queryKeys – one works as expected, the other doesn't.