In this example, the value of person is inherited correctly from the enclosing component:
<div>
<SomeYieldingComponent>
Hello {{person}}
</SomeYieldingComponent>
</div>
In this example, it is not:
<div>
{{#each people as person}}
<SomeYieldingComponent>
Hello {{person}}
</SomeYieldingComponent>
{{/each}
</div>
As far as I know {{yield}} is not usable in the online repl, so here is a full reproduction: https://github.com/TehShrike/svelte-yield-issue-repro
In this example, the value of
personis inherited correctly from the enclosing component:In this example, it is not:
As far as I know
{{yield}}is not usable in the online repl, so here is a full reproduction: https://github.com/TehShrike/svelte-yield-issue-repro