Cannot read properties of undefined (reading 'isDehydrated')
Whenever the dev server reloads, I keep seeing this error and after I refresh manually, this goes away

3 Replies
protestant-coralOP•4mo ago
This is only happening when I try import react
queryClient from my src/utils folder
I made the declaration inside the createRouter route function itself
Now my question is that how can I access this queryClient in my utils function?
I know we can access if we are in a component using Route.useRouteContext().queryClientwise-white•4mo ago
I am also running into this, please let me know if you have an answer
protestant-coralOP•4mo ago
@Winston hey, as I said I stopped seeing that error when I stopped importing
queryClient. I made the declaration inside the src/router.tsx file.
Now when I need to access queryClient, I used useQueryClient and its working fine.