-
-
Couldn't load subscription status.
- Fork 4.7k
Closed
Description
Describe the bug
With Svelte 5, function calls in the template are reactive.
Basically these examples are reactive (if aFunctionCall() use a state) :
<div>{aFunctionCall()}</div>or
<div class={aFunctionCall()}> ... </div>But this is not the case for the spread attributes :
<div {...aFunctionCall()}> ... </div>Reproduction
See REPL
Choose a color. The class attribute is not updated on the last div
Seem that the $.spread_attributes() call should be inside a $.render_effect()
Logs
No response
System Info
REPLSeverity
annoyance
brunnerh, Not-Jayden and hanszoons
Metadata
Metadata
Assignees
Labels
No labels