Repository navigation
refactor(vue-query): add the 'override' modifier to members that override a base class member - #11905
Conversation
…ride a base class member
|
|
View your CI Pipeline Execution ↗ for commit 69540c0
☁️ Nx Cloud last updated this comment at |
🚀 Changeset Version Preview1 package(s) bumped directly, 24 bumped as dependents. 🟩 Patch bumps
|
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (5)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 1 remain after this review. 📝 WalkthroughWalkthroughVue Query cache and client methods are now explicitly marked as overrides. The Vue reference documentation points to updated source locations. Method signatures and runtime behavior remain unchanged. ChangesVue Query override declarations
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~8 minutes Change: Refactor Merge Risk: ⚪ Minimal · up to The change adds compile-time override markers and updates documentation links, with no runtime or API behavior change indicated. The links resolve correctly and no concrete merge-blocking defect is established, though the type-test matrix did not complete. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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 |
size-limit report 📦
|
🎯 Changes
Adds the TypeScript
overridemodifier to the methods thatQueryClient(including its overload signatures),QueryCache, andMutationCacheoverride from theirquery-corebase classes.These wrappers unwrap the refs and getters before calling the base method. With
override, TypeScript reports an error if aquery-coremethod is renamed or removed, instead of silently leaving the wrapper as a new, unused method.overrideis erased at compile time, so the built JS and the type declarations are unchanged. The generated reference docs only update "Defined in" line numbers, since some signatures now wrap.✅ Checklist
pnpm run test:pr, or these tests do not apply to this pull request.🚀 Release Impact
Summary by CodeRabbit
QueryCacheandQueryClientmethods.