You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The output of the second sample should be:
....
Child component...has scopedslot: false
....
What is actually happening?
The output of the second sample is:
....
Child component...has scopedslot: true
....
The text was updated successfully, but these errors were encountered:
MaximilianFranke
changed the title
Scoped Slot delegate to child component
Scoped Slot delegate to child component. Slot is in child component always set, also if it not set
Oct 11, 2018
It's because it's a function, so you have to call it to check if the result is undefined (or an empty array in the future #8056). In the Parent component there's always the scoped slot in the template but that's not the case in App.vue, so the function may also not exist
Version
2.5.17
Reproduction link
https://codesandbox.io/s/j1451yzrm5
Steps to reproduce
Open sample
What is expected?
The output of the second sample should be:
....
Child component...has scopedslot: false
....
What is actually happening?
The output of the second sample is:
....
Child component...has scopedslot: true
....
The text was updated successfully, but these errors were encountered: