verbal-limeV
Refine3y ago
15 replies
verbal-lime

query data cannot be undefined

I created a new Refine app, using the Remix framework and Headless components.

I tried to implement a small /logout route that doesn't exist in the template. It was a little hard because I'm not used to Remix but I did make a page that erases the user cookie on the client and redirects to the login page.

But now I'm getting this message on the browser console that I can't find the source. Apparently it is coming from Tanstack Query, but I'm not using that directly.

chunk-AXEPKFYX.js:4742 Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ["getUserIdentity"]


I also searched for this key "getUserIdentity" on my code but it doesn't exist there.
Was this page helpful?