-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
fix(nuxt): correct warning message for prefetch/noPrefetch conflict #33617
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
Swap argument order in checkPropConflicts to match actual implementation behavior. The warning message now correctly states that `prefetch` will be ignored when both `prefetch` and `noPrefetch` are used together, which matches the actual implementation where `noPrefetch` takes priority. Fixes nuxt#33616
|
|
WalkthroughThe pull request modifies the client-side prefetch conflict check in the Nuxt link component. The change swaps the parameter order in a Estimated code review effort🎯 2 (Simple) | ⏱️ ~5–10 minutes
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 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 |
@nuxt/kit
nuxt
@nuxt/rspack-builder
@nuxt/schema
@nuxt/vite-builder
@nuxt/webpack-builder
commit: |
CodSpeed Performance ReportMerging #33617 will improve performances by 11.45%Comparing Summary
Benchmarks breakdown
Footnotes |
🔗 Linked issue
resolves #33616
📚 Description
Swap argument order in checkPropConflicts to match actual implementation behavior.
The warning message now correctly states that
prefetchwill be ignored when bothprefetchandnoPrefetchare used together, which matches the actual implementation wherenoPrefetchtakes priority.