In Svelte 5 I need to do:
let {foo = 42, bar = 58} = $props();
to extract the values sent by props with default values. How can I do the same when bar
depends on the value of foo
, like:
// does not work:
let {foo = 42, bar = foo + 1} = $props();