Replies: 1 comment
-
|
I solved my issue. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to make an app that works in Cloudflare pages, and it needs to access data in the context. I'm using an
entry.server.tsxwhich seems like the one everyone is using out there:`entry.server.tsx`
I'm also using
cloudflareDevProxyfor the dev server andcreatePagesFunctionHandlerfor the pages function. It looks just like what other people are doing out there, e.g:However, in my loader function the
contextis undefined, both in the dev server and when running through wrangler. Also, I can't see how the context is passed to the routes inentry.server.tsxif the parameter is not used, and looking at the react-router source code also seems to indicate it is not passed.Two questions:
Beta Was this translation helpful? Give feedback.
All reactions