How can my query not exist in the queryClient?
Hello, I have this code:
When I log the state to the console I get:
in the docs it says this:
"getQueryData is a synchronous function that can be used to get an existing query's cached data. If the query does not exist, undefined will be returned."
How can my query not exist when I literally logged the data from it, what is wrong here?
1 Reply
harsh-harlequin•3y ago
where is
queryClient coming from ?