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
feat(nuxt): enable preloading object-syntax routes #19120
feat(nuxt): enable preloading object-syntax routes #19120
Conversation
β¦e as `RouteLocationRaw`
Β Open in CodeSandbox Web Editor | VS Code | VS Code Insiders |
Would you update this following the merge of your other PR? π |
# Conflicts: # packages/nuxt/src/app/components/nuxt-link.ts
Thank you for bringing this to my attention. I resolved the conflict caused by #19144. |
I'm unsure which option is better between using Does the Overall, this issue is not significant because although dynamic routing repeats preloading, it doesn't require sending additional network requests. |
|
preloadRouteComponents
to accept RouteLocationRaw
values
π Linked issue
preloadRouteComponents
allows passing values of typeRouteLocationRaw
Β #18845β Type of change
π Description
After this PR, the path parsed by the following code all will be
/home
. As a result, the preload function will not retry and will instead return early.In addition, when users use
preloadRouteComponents
, they are not limited to type string.π Checklist