-
Notifications
You must be signed in to change notification settings - Fork 65
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
Infinite WARN loop with slots and nuxt-content #157
Comments
@benjamincanac Would it be possible for the Nuxt UI 2 to use the new icon module (after we do stable releases) so people could benefit from it before wait for UI 3? |
@antfu I don't see how it's related to this issue but yeah it would be nice! Although didn't you say it wasn't compatible with |
This issue is no longer relevant in the beta version, but ppl still get the old behavior because Nuxt UI v2 still on the previous version.
It works, just not the most efficient on the SSR (might have duplicate icon CSS). On client side we do dedupe with the user's stylesheet, so the limitation won't affect client nav or dynamic icons |
@antfu Is there an update on this? When I install additionally nuxt-icon beta version together with nuxt-ui there are complications |
@gitFoxCode Nuxt Icon |
I get warn:
Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead.
when I use an icon component and use multiple slots at the same time.Replication:
nuxt.config.ts
components/content/ComponentWithIcon.vue
components/content/Container.vue:
layouts/full.vue:
content/index.md:
This bug prevents the site from being used in development mode due to the infinity loop. The problem does not occur in the latest beta version of nuxt-icon, but in the original project I use nuxt-ui, which uses the old version
The text was updated successfully, but these errors were encountered: