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

Potential bug with slot props/if block #4292

Closed
markcheno opened this issue Jan 20, 2020 · 1 comment · Fixed by #4294
Closed

Potential bug with slot props/if block #4292

markcheno opened this issue Jan 20, 2020 · 1 comment · Fixed by #4294
Labels

Comments

@markcheno
Copy link

Nested slot props inside of an #if block are only updating the first time the block is executed.
I have a simple input component that passes the input via a slot prop to another slot.
The prop is only updating the first time through when inside of an #if block.
If I dereference the prop outside of the inner slot it seems to work.

Here is a repl demonstrating the behavior:

https://svelte.dev/repl/50850852403548b5b6381145ba9dc796?version=3.17.1

Using latest svlete, Chrome on latest osx

Not sure if this is a bug or expected behavior, but it took a lot of effort to track down.

@Conduitry
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants