You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi all,
I am using rr v7.8.0 middleware enabled and export const customAppLoadContext = unstable_createContext<AppLoadContext>(); and my requestHandler is createRequestHandler({ build: () => import("virtual:react-router/server-build"), getLoadContext: () => { const context = new unstable_RouterContextProvider(); context.set(customAppLoadContext, loadContext); return context; }, mode: process.env.NODE_ENV, }), , but on dev mode while hot reloading I am getting the Unexpected Server Error
Error: No value found for context. Why is this happening? Is there a solution for that?
Thanks.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I am using rr v7.8.0 middleware enabled and
export const customAppLoadContext = unstable_createContext<AppLoadContext>();
and my requestHandler iscreateRequestHandler({ build: () => import("virtual:react-router/server-build"), getLoadContext: () => { const context = new unstable_RouterContextProvider(); context.set(customAppLoadContext, loadContext); return context; }, mode: process.env.NODE_ENV, }),
, but on dev mode while hot reloading I am getting the Unexpected Server ErrorError: No value found for context. Why is this happening? Is there a solution for that?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions