Skip to content

fix: do not invoke slots in computed functions#6133

Draft
danielroe wants to merge 4 commits intov4from
fix/computed-render
Draft

fix: do not invoke slots in computed functions#6133
danielroe wants to merge 4 commits intov4from
fix/computed-render

Conversation

@danielroe
Copy link
Member

🔗 Linked issue

❓ Type of change

  • 📖 Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • 👌 Enhancement (improving an existing functionality)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

If you run nuxt/nuxt.com locally you'll see these warnings spamming in the console:

[14:30:13]  WARN  [Vue warn]: Slot "default" invoked outside of the render function: this will not track dependencies used in the slot. Invoke the slot function inside the render function instead.at <ProseCodeTree>
at <AsyncComponentWrapper>
at <MDCRenderer>
at <MDC>
at <AsyncComponentWrapper>

this aims to fix it by not invoking slots in a computed function but doing so in render lifecycle hooks

📝 Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@pkg-pr-new
Copy link

pkg-pr-new bot commented Mar 2, 2026

npm i https://pkg.pr.new/@nuxt/ui@6133

commit: 03ef1f5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

v4 #4488

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant