Skip to content
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

$$props usage in component will freeze bind values #2725

Closed
sanderhahn opened this issue May 9, 2019 · 2 comments · Fixed by #3069
Closed

$$props usage in component will freeze bind values #2725

sanderhahn opened this issue May 9, 2019 · 2 comments · Fixed by #3069

Comments

@sanderhahn
Copy link
Contributor

Using $$props inside a component will freeze any bind values. This can be resolved by not referencing $$props or by updating both the value and the nested $$props value. This repl tries to illustrate the problem: https://svelte.dev/repl/aacb7e0b8066497490d3204f8a57491c?version=3.2.2

@pur3miish
Copy link

I am having the same issue, please see this REPL

It would be nice to be able to pass bind:value={someVal} and it could then be accessible on the props of the child component

App.svelte

<TextInput bind:value />

TextInput.svelte

<input {...$$props} />

@Conduitry
Copy link
Member

Fixed in 3.5.4

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

Successfully merging a pull request may close this issue.

3 participants