-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
fix(nuxt): cleanup event listener with cleanup signal #33667
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
Conversation
|
|
WalkthroughThe changes refactor abort-signal management in the createAsyncData composable by introducing a dedicated cleanupController (AbortController) to centralise cleanup. mergeAbortSignals is reworked to accept a cleanupSignal parameter and no longer depends on nuxtApp. A single abort listener is registered on the merged signal and scoped to cleanupController.signal; the previous onAbort/removeListenerAfterRender pattern is removed. cleanupController.abort() is invoked in the finally path to trigger cleanup and ensure listeners are removed. Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used📓 Path-based instructions (1)**/*.{ts,tsx}📄 CodeRabbit inference engine (.github/copilot-instructions.md)
Files:
🧠 Learnings (1)📚 Learning: 2024-11-05T15:22:54.759ZApplied to files:
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (19)
🔇 Additional comments (6)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
cdea624 to
c08b3d2
Compare
@nuxt/kit
nuxt
@nuxt/rspack-builder
@nuxt/schema
@nuxt/vite-builder
@nuxt/webpack-builder
commit: |
CodSpeed Performance ReportMerging #33667 will improve performances by 14.25%Comparing Summary
Benchmarks breakdown
|
🔗 Linked issue
followup on #33665
📚 Description
It reworks the cleanup to use a signal to cleanup the eventlisteners.