Skip to content

No slot rendered within a condition #14332

@GELight

Description

@GELight

Describe the bug

If no named footer slot is initially rendered anywhere in the template, no further footer slots are rendered in other conditions.

Reproduction

I created a related repository to show the behaviour:
https://github.com/GELight/svelte-5-test/blob/main/projects/test/src/components/Payment/Payment.svelte

If the footer slot in line 33 is rendered, all other slots in other conditions are rendered correctly. Is not slot rendered anywere on initial then never any slot will rendered later.

I only found this case with a named slot but I not tested this behaviour with the default slot. I think technically it should be the same behaviour, right?

Logs

No log or error available.

Only the slot will not rendered.

System Info

System:
    OS: Linux 6.1 Debian GNU/Linux 12 (bookworm) 12 (bookworm)
    CPU: (32) x64 AMD Ryzen 9 7950X3D 16-Core Processor
    Memory: 12.86 GB / 30.48 GB
    Container: Yes
    Shell: 5.2.15 - /bin/bash
  Binaries:
    Node: 22.7.0 - ~/.nvm/versions/node/v22.7.0/bin/node
    npm: 10.8.2 - ~/.nvm/versions/node/v22.7.0/bin/npm
  Browsers:
    Brave Browser: 131.1.73.89
    Chrome: 131.0.6778.69
  npmPackages:
    svelte: 5.2.2 => 5.2.2

Severity

annoyance

Metadata

Metadata

Assignees

No one assigned

    Labels

    awaiting submitterneeds a reproduction, or clarification

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions