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
Expected behavior
Expected:
In the repl, expected behaviour is that the heading colour changes and the text changes its wording to include the selected colour. (this can be seen in the 3.6.1 link)
What happens:
The text colour changes, but the wording doesn't change.
Severity
Svelte native uses nested slots like above in its rendering of List Views. This regression breaks svelte native :(
Additional context
Looking at generated code
in 3.7.0:
Describe the bug
It seems a value from a " let:" on a component with slots doesn't trigger an update when used as a prop on a slot... eg
changes that "WithColourPicker" makes to "colour" aren't causing the slot to rerender with new titlecolour.
To Reproduce
Working:
https://svelte.dev/repl/991c974902464e119edc540fd18a99cd?version=3.6.1
Broken:
https://svelte.dev/repl/991c974902464e119edc540fd18a99cd?version=3.7.0
Expected behavior
Expected:
In the repl, expected behaviour is that the heading colour changes and the text changes its wording to include the selected colour. (this can be seen in the 3.6.1 link)
What happens:
The text colour changes, but the wording doesn't change.
Severity
Svelte native uses nested slots like above in its rendering of List Views. This regression breaks svelte native :(
Additional context
Looking at generated code
in 3.7.0:
whereas 3.6.1:
Note that 3.6.1 considers changed.colour enough to update the slot where 3.7.0 doesn't consider this relevant.
Diagnosis
I think this happens because although the let variable is added to the dependencies for the InlineComponentWrapper b2d9da3#diff-beaec73b844dfbe1d4a6ee6da477b182R165
They are ignored when processing the slot by this:
b2d9da3#diff-5f78860f62364bc95ba513ae1fdfdc3dR88
But I am unsure of the correct fix
The text was updated successfully, but these errors were encountered: