Closed adiguba closed 2 weeks ago
I think this still needs some special handling for children
.
<Comp children="Children using props">
Children using <b>snippet</b>
</Comp>
I think this still needs some special handling for
children
.<Comp children="Children using props"> Children using <b>snippet</b> </Comp>
Ugh i purposefully left out children but i think you might be right...having an error here doesn't seem a bad idea
Describe the problem
Snippet are passed as props, and they can therefore hide props of the same name.
Ex:
will be compiled to something like this :
Note that there are two attributes "title", and the snippet is hiding the props.
Exemple : REPL
Describe the proposed solution
Currently, Svelte generates an error when using the same attribute twice :
I think it should be the same when a snippet collides with a prop :
Importance
nice to have