-
Notifications
You must be signed in to change notification settings - Fork 29.4k
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
asyncLocalStorage shared in different modules #32578
Comments
Maybe I should export the instance |
Each |
Zone has a global static |
maybe you would like this #32062 |
What steps will reproduce the bug?
I want to call function named
test
defined in other.js, and the caller script is test.js.And the callee script showed as follow.
How often does it reproduce? Is there a required condition?
always.
What is the expected behavior?
In other.js, it should be {id: x} the same as test.js.
Maybe different modules could shared the same AsyncLocalStorage. And the value of the callee script depends on the caller script.
What do you see instead?
The output is always
undefined
.Additional information
In zone.js, different modules can share the same context using
Zone.current.name
.@puzpuzpuz many thanks!!!
The text was updated successfully, but these errors were encountered: