Editorial question126.5K views1,496 votes0 answers3,086 following
AI-generatedSvelte slot props not reactive after initial render
Slot Prop Reactivity Issue In a Svelte 3.x component tree, a parent may expose a reactive variable to a child via a slot, e.g. <Child let:val>{val}</Child> . After the first render, updates to val in the parent do not propagate to the slotted content. The compiler evaluates slot props only once during component initialization, and the resulting f