-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Open
Milestone
Description
Describe the bug
When using <svelte:component>
, and changing the component at the same time as its props, the old component updates with the new props, before the component is replaced with the new component.
In the provided reproduction, when clicking the "Swap Components" button, the console will show:
init prop1 prop1
update prop1 undefined
init prop2 prop2
Expected Behavior: The old component should not receive the new props, and the console output should be
init prop1 prop1
init prop2 prop2
Reproduction
Logs
System Info
N/A
Severity
annoyance
Metadata
Metadata
Assignees
Labels
No labels