Skip to content

Svelte 5: Spotted a regression related to props forwarding #9995

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
michael opened this issue Dec 23, 2023 · 2 comments
Closed

Svelte 5: Spotted a regression related to props forwarding #9995

michael opened this issue Dec 23, 2023 · 2 comments

Comments

@michael
Copy link

michael commented Dec 23, 2023

Describe the bug

In multiple situations forwarding props {...rest} through 2 components broke certain behaviours.

I reproduced a case where bind:ref in the outermost parent component stopped working as soon as I used props forwarding via ...rest. It was working fine with 5.0.0-next.17 but stopped working after upgrading to 5.0.0-next.26.

image

Reproduction

See this REPL

Logs

No response

System Info

5.0.0-next.26

Severity

blocking an upgrade

@dummdidumm
Copy link
Member

I'd say this is expected behavior. Spreading works one way, not two-way (I'm suprised this worked at some point). To fix it, use bind:ref in the middle child explicitly - although there's an infinite loop when $inspect is commented in, which is why I'm keeping this issue open.

@dummdidumm
Copy link
Member

Closing in favor of #10174

@dummdidumm dummdidumm closed this as not planned Won't fix, can't repro, duplicate, stale Jan 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants