Skip to content

solid 2 beta `<Portal> - can't use element that was declared before the Portal #2709

@mizulu

Description

@mizulu

Describe the bug

solid 1.x playground
https://playground.solidjs.com/anonymous/b386f390-ab4e-4624-be3f-c1b868304f0e

solid 2 playground
https://s.olid.uk/id/LAAHY2EZSG-d9dJ2gQzA6w

Your Example Website or App

https://s.olid.uk/id/LAAHY2EZSG-d9dJ2gQzA6w

Steps to Reproduce the Bug or Issue

go to

Expected behavior

should be able to mount to an element that was defined prior to itself

potentially it might need to automatically defer if the mount was not found.
I am not sure how solid 1 actually works.

Screenshots or Videos

No response

Platform

.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions