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

fix: use AsyncLocalStorage for getContext #587

Merged
merged 4 commits into from
Mar 10, 2024
Merged

Conversation

dai-shi
Copy link
Owner

@dai-shi dai-shi commented Mar 10, 2024

close #586

It was my misunderstanding that cache does something magical behind the scene, but it uses ALS under the hood.

Copy link

vercel bot commented Mar 10, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
waku ✅ Ready (Inspect) Visit Preview Mar 10, 2024 3:32am

Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@dai-shi dai-shi mentioned this pull request Mar 10, 2024
@dai-shi dai-shi marked this pull request as ready for review March 10, 2024 03:45
@dai-shi dai-shi merged commit ef842b9 into main Mar 10, 2024
28 checks passed
@dai-shi dai-shi deleted the fix/rsc-context-with-async branch March 10, 2024 03:46

let renderStorage: AsyncLocalStorageType<RenderStore> | undefined;

import(/* @vite-ignore */ DO_NOT_BUNDLE + 'node:async_hooks')
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, I think it needs to be bundled.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 this pull request may close these issues.

Error: [Bug] No render context found (v0.20.0-alpha.0)
1 participant