Open brunnerh opened 1 year ago
To add to this its not clear how to forward events seeing as $$restProps does not include events how do you bind all incoming events?
<button {...$$restProps} on:{incomingEvents}/>
That was just not possible in v3/4 and will be possible in Svelte 5 (events will just be callbacks that are spread together with other props).
Describe the bug
The docs state:
What exactly does that mean? What are the consequences to expect? Does the type of usage matter, e.g.
$$props.something
in JS vs<element {...$$props} />
?For
$$restProps
, would it be better to collect additional data in a single property when used in a spread?Reproduction
N/A
Logs
No response
System Info
Severity
annoyance