Skip to content

slots appear to be broken in components rendered within a .map method #959

@ZeldOcarina

Description

@ZeldOcarina

Astro Info

Astro                    v4.3.2
Node                     v18.18.0
System                   Linux (x64)
Package Manager          unknown
Output                   static
Adapter                  none
Integrations             none

If this issue only occurs in one browser, which browser is a problem?

No response

Describe the Bug

After upgrading to 4.3.2 slots appear to be broken if components are rendered within a map.

This is super weird as this approach I am using has been always working.

See Discord support ticket too.

What's the expected result?

We should get both "Hero" and "Component2" on the screen. Nothing before the last item in the switch statement is rendered, even statically added Astro elements.

Link to Minimal Reproducible Example

https://stackblitz.com/~/edit/github-c7fcrc

Participation

  • I am willing to submit a pull request for this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    - P5: urgentFix build-breaking bugs affecting most users, should be released ASAP (priority)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions