fix(runtime-core): prevent instance leak in withAsyncContext#14445
fix(runtime-core): prevent instance leak in withAsyncContext#14445edison1105 merged 2 commits intomainfrom
Conversation
schedule withAsyncContext reset after restore to prevent scope leaks
📝 WalkthroughWalkthroughDefers component-instance restoration and adds cleanup scheduling in withAsyncContext to prevent instance leakage during async restores; adds tests that assert no instance leakage in microtasks and concurrent restores. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Comment |
Size ReportBundles
Usages
|
@vue/compiler-core
@vue/compiler-dom
@vue/compiler-sfc
@vue/compiler-ssr
@vue/reactivity
@vue/runtime-core
@vue/runtime-dom
@vue/server-renderer
@vue/shared
vue
@vue/compat
commit: |
…leaking sibling currentInstance
|
/ecosystem-ci run |
|
📝 Ran ecosystem CI: Open
|
|
@edison1105 when do you think this could be included in a release? Waiting for this to be included upstream in nuxt. |
fix nuxt/nuxt#33644 (comment)
schedule withAsyncContext reset after restore to prevent scope leaks
Summary by CodeRabbit
Bug Fixes
Tests