Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
component content unexpectedly rendered #9877
Steps to reproduce
just run the fiddle demo
What is expected?
Since parent component (
What is actually happening?
bar() is unexpectedly called
This is a simplified test case.
as you are using a regular slot, this one is rendered in the parent template then passed to the component, using a scoped slot would prevent it as it won't be rendered if it isn't used inside the component. Wrapping it in a
This probably won't be a problem for v3 though as slots will be unified but not evaluating the content would remove the