-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Description
From the documentation of slots it seems it should be possible to bind values of a component to a slot:
Slots can be rendered zero or more times, and can pass values back to the parent using props. The parent exposes the values to the slot template using the
let:directive.
but it seems that the real situation is different: this REPL triggers the error Cannot bind to a variable declared with the let: directive (10:32).
Expected behavior
Binding a variable in a slot, which is bound to a variable in the parent component, should work normally as it would if I manually substituted the slot content inside the container.
Severity
This underpins the possibility of developing a lot of components that take care of boilerplate code for my application, so in my case this effectively blocks my usage of Svelte for the project.