We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e1657fd commit 4fe1a95Copy full SHA for 4fe1a95
src/core/instance/render-helpers/render-slot.js
@@ -27,12 +27,14 @@ export function renderSlot (
27
} else {
28
const slotNodes = this.$slots[name]
29
// warn duplicate slot usage
30
- if (slotNodes && process.env.NODE_ENV !== 'production') {
31
- slotNodes._rendered && warn(
32
- `Duplicate presence of slot "${name}" found in the same render tree ` +
33
- `- this will likely cause render errors.`,
34
- this
35
- )
+ if (slotNodes) {
+ if (process.env.NODE_ENV !== 'production' && slotNodes._rendered) {
+ warn(
+ `Duplicate presence of slot "${name}" found in the same render tree ` +
+ `- this will likely cause render errors.`,
+ this
36
+ )
37
+ }
38
slotNodes._rendered = true
39
}
40
return slotNodes || fallback
0 commit comments