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

Slot with props doesn't propergate changes #4061

Closed
RedHatter opened this issue Dec 7, 2019 · 1 comment · Fixed by #4091
Closed

Slot with props doesn't propergate changes #4061

RedHatter opened this issue Dec 7, 2019 · 1 comment · Fixed by #4091

Comments

@RedHatter
Copy link
Contributor

RedHatter commented Dec 7, 2019

Describe the bug
If a slot that passes a value back contains another slot then any changes to the value will not propagate through.

To Reproduce
Here's a repl. Outer.svelte renders a slot and passes text='first' then updates it to 'second'. Inner.svelte simply renders a slot. It should render first first then after a second change to second second but it instead changes to second first showing that the inner slot is never notified of the change.

Severity
At work I'm re-writting a very large application in svelte. I'm running into this bug frequently do to how we handle state. This very much needs to be fixed before we can push to production.

RedHatter pushed a commit to RedHatter/svelte that referenced this issue Dec 10, 2019
RedHatter pushed a commit to RedHatter/svelte that referenced this issue Dec 10, 2019
@RedHatter RedHatter mentioned this issue Dec 10, 2019
@Conduitry
Copy link
Member

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.

2 participants