Make getLoadContext async for all adapters #6167
Closed
arielvieira
started this conversation in
Proposals
Replies: 1 comment 5 replies
-
Created a PR to support this out of the box: #6170 |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Right now the
getLoadContext
it's already async for @remix-run/denoremix/packages/remix-deno/server.ts
Line 29 in 935464d
But is not async for the other adapters, for now I'm patching the cloudflare adapter so I can use it as async, but would be really awesome to have it async by default for every other providers beside deno
getLoadContext
code from other adapters@remix-run/architect
remix/packages/remix-architect/server.ts
Line 53 in 935464d
@remix-run/cloudflare-pages
remix/packages/remix-cloudflare-pages/worker.ts
Line 31 in 935464d
@remix-run/cloudflare-workers
remix/packages/remix-cloudflare-workers/worker.ts
Line 40 in 935464d
@remix-run/express
remix/packages/remix-express/server.ts
Line 56 in 935464d
@remix-run/netlify
remix/packages/remix-netlify/server.ts
Line 50 in 935464d
@remix-run/vercel
remix/packages/remix-vercel/server.ts
Line 50 in 935464d
And even in hydrogen it is async as well
https://github.com/Shopify/hydrogen/blob/2023-04/packages/remix-oxygen/src/server.ts#L21
Beta Was this translation helpful? Give feedback.
All reactions