- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 4.7k
 
Description
Describe the bug
I'm seeing a regression with undefined and fallback props in Svelte 5.
If a component has a prop with a fallback, and you pass in undefined either explicitly or with {...props}, it will render fine with the fallback set the first time. However when changing any of the other props afterwards, the prop will no longer be the fallback but instead be undefined.
This happens in Svelte 5, but in Svelte 4 it stays the fallback forever as I'd expect.
Reproduction
In the following reproductions, clicking the button will change the boolean prop. In Svelte 4 the text prop stays the default text, but in Svelte 5 the text disappears because it becomes undefined.
Reproduction in Svelte 4, showing it works:
https://svelte.dev/repl/9a798c8fe7f44aef8e728884aa6fe417?version=4.2.7
Logs
No response
System Info
https://svelte-5-preview.vercel.appSeverity
blocking an upgrade