TanStackT
TanStack3y ago
6 replies
full-green

queryCache.findAll(key) weird behaviour

hi.
I have a function which returns some cache data
but i want it to return undefined while nothing found
in that case im getting some strange result
return undefined doesnt work
and im getting 2 console logs output with and without data
can anyone explain why is that happening?
photo_2023-06-29_18-29-53.jpg
photo_2023-06-29_18-29-57.jpg
Was this page helpful?