Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9k
fix(runtime-vapor): simplify KeepAlive caching logic by removing redundant checks#14217
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Conversation
coderabbitaibot commentedDec 17, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing touches🧪 Generate unit tests (beta)
Comment |
Size ReportBundles
Usages
|
@vue/compiler-core@vue/compiler-dom@vue/compiler-sfc@vue/compiler-ssr@vue/compiler-vapor@vue/reactivity@vue/runtime-core@vue/runtime-dom@vue/runtime-vapor@vue/server-renderer@vue/sharedvue@vue/compatcommit: |
624fa7e intominorUh oh!
There was an error while loading.Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Pull request overview
This PR simplifies the KeepAlive caching logic in the vapor runtime by removing redundantshouldCache conditional checks when setting theCOMPONENT_SHOULD_KEEP_ALIVE shape flag.
Key Changes:
- Removed redundant
shouldCachechecks before settingCOMPONENT_SHOULD_KEEP_ALIVEflag in both the interop and non-interop code paths - The
shouldCachevalidation is already performed via early return checks, making the removed conditionals always true at the point of flag assignment - Aligns with the existing pattern used in the
cacheFragmentfunction
💡Add Copilot custom instructions for smarter, more guided reviews.Learn how to get started.
No description provided.