Skip to content

Impossible to pass key blocks through slots #7408

@alextana

Description

@alextana

Describe the bug

I'm trying to use a key block to rerender a component based on a condition, but I noticed that if a component is nested it looks like it doesn't actually get re-rendered

Reproduction

https://svelte.dev/repl/990bc381eae748a2822c3d07304d14c2?version=3.46.5

the behaviour I'm expecting is to get Component3 to log 'mount' when reset changes

Logs

No response

System Info

System: OS: macOS 12.3 CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz Memory: 16.49 MB / 16.00 GB Shell: 5.8 - /bin/zsh Binaries: Node: 16.13.2 - /usr/local/bin/node npm: 8.3.1 - /usr/local/bin/npm Browsers: Chrome: 100.0.4896.60 Firefox: 98.0.2 Safari: 15.4

Severity

annoyance

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugcompilerChanges relating to the compiler

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions