You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.
🐛 Bug Report
See https://github.com/stephenh/async-local-storage-repro, DataDog/dd-trace-js#1095, fastify/fastify-request-context#49, or try running tests from https://github.com/puzpuzpuz/cls-rtracer with Node 16.2.0
Change in 16.2.0 that is causing this: nodejs/node#36394
More detailed analysis on the root cause for the issue: nodejs/node#38781
To Reproduce
If you run code that does:
the getStore value is lost and comes back as
undefined
.Expected behavior
AsyncLocalStorage should work as it did on previous versions with Node 16.2.0 and Jest, returning previously set value
Link to repl or repo (highly encouraged)
https://github.com/stephenh/async-local-storage-repro
https://github.com/puzpuzpuz/cls-rtracer (run tests with Node 16.2.0)
https://github.com/fastify/fastify-request-context/ (run
npm run test:jest
with Node 16.2.0)envinfo
The text was updated successfully, but these errors were encountered: