Context is undefined in 'loader'
The application encounters a TypeError: Cannot read properties of undefined (reading 'queryClient') during the loading process. The loader function attempts to use context.queryClient to ensure query data but fails because context.queryClient is undefined.



3 Replies
subsequent-cyan•2y ago
please provide a minimal complete example by forking one of the examples from stackblitz
deep-jade•2y ago
We have an open issue for context being undefined after a redirect happens. I posted a minimal reproduction there
subsequent-cyan•2y ago
ah I did not see the redirect in the screenshot, so most likely this is the same issue