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
Describe the bug
If a slot that passes a value back contains another slot then any changes to the value will not propagate through.
To Reproduce Here's a repl. Outer.svelte renders a slot and passes text='first' then updates it to 'second'. Inner.svelte simply renders a slot. It should render first first then after a second change to second second but it instead changes to second first showing that the inner slot is never notified of the change.
Severity
At work I'm re-writting a very large application in svelte. I'm running into this bug frequently do to how we handle state. This very much needs to be fixed before we can push to production.
The text was updated successfully, but these errors were encountered:
RedHatter
pushed a commit
to RedHatter/svelte
that referenced
this issue
Dec 10, 2019
Describe the bug
If a slot that passes a value back contains another slot then any changes to the value will not propagate through.
To Reproduce
Here's a repl. Outer.svelte renders a slot and passes
text='first'
then updates it to'second'
. Inner.svelte simply renders a slot. It should renderfirst first
then after a second change tosecond second
but it instead changes tosecond first
showing that the inner slot is never notified of the change.Severity
At work I'm re-writting a very large application in svelte. I'm running into this bug frequently do to how we handle state. This very much needs to be fixed before we can push to production.
The text was updated successfully, but these errors were encountered: