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
I think this was caused by same refactor as #3354
in that $$props is not seen as dynamic (it is added the dynamic attributes, but skipped when considering the slot redraw)
Describe the bug
changes in $$props no longer causes a slot to re-render even if the slot has properties that derive from $$props.
To Reproduce
Simple reflection of props fails in 3.7.1
https://svelte.dev/repl/43683d712ec940d7adbddb358106b0ee?version=3.7.1
Expected behavior
when you click the button the text should change from "hi" to "changed" like it does in 3.6.1
https://svelte.dev/repl/43683d712ec940d7adbddb358106b0ee?version=3.6.1
I think this was caused by same refactor as #3354
in that $$props is not seen as dynamic (it is added the dynamic attributes, but skipped when considering the slot redraw)
Severity
I have worked around it by introducing a reactive variable like:
$: p = $$props
and referencing that in the slote.g. https://svelte.dev/repl/83a137e2188c430884d19ccfb311b14d?version=3.7.1
The text was updated successfully, but these errors were encountered: