refactor(nuxt): explicitly import app in nuxt-root#8729
Conversation
|
|
✅ Deploy Preview for nuxt3-docs canceled.
|
|
Having Any specific reason made you to make this refactor @danielroe ? |
|
The reason for the refactor is that storing the component in the vue component registry is a slight additional overhead when it's only used once. For custom root components, we could import directly from Regarding name, I think |
|
I don't think there is any noticeable overhead of registering one component to the Vue interface (otherwise we have really issues with scaling any Nuxt project with dozens of components...) Naming |
🔗 Linked issue
❓ Type of change
📚 Description
This is a micro optimisation. We likely don't need access to
<App>outside of<NuxtRoot>and it feels like having it in the vue component registry isn't necessary. But I may have missed something here - wdyt @antfu?📝 Checklist