Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flight update: Preinitialze client component import during SSR #17

Closed
revskill10 opened this issue Oct 5, 2023 · 0 comments · Fixed by #18
Closed

Flight update: Preinitialze client component import during SSR #17

revskill10 opened this issue Oct 5, 2023 · 0 comments · Fixed by #18

Comments

@revskill10
Copy link

Here's the related PR which supports emitting async component during SSR to optimize hydration.

Could you add support for this, too ?

unstubbable added a commit that referenced this issue Oct 30, 2023
Based on facebook/react#27314

This feature requires `AsyncLocalStorage` to be available in the edge
environment via the `node:async_hooks` module. This is the case for
[Vercel](https://vercel.com/docs/functions/edge-functions/edge-runtime#compatible-node.js-modules)
as well as
[Cloudflare](https://developers.cloudflare.com/workers/runtime-apis/nodejs/asynclocalstorage/).

fixes #17
unstubbable added a commit that referenced this issue Oct 30, 2023
Based on facebook/react#27314

This feature requires `AsyncLocalStorage` to be available in the edge
environment via the `node:async_hooks` module. This is the case for
[Vercel](https://vercel.com/docs/functions/edge-functions/edge-runtime#compatible-node.js-modules)
as well as
[Cloudflare](https://developers.cloudflare.com/workers/runtime-apis/nodejs/asynclocalstorage/).

fixes #17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant