Skip to content

Add support for multiple roots with useId #3781

Description

@marvinhagemeister
  • Check if updating to the latest Preact version resolves the issue

Describe the bug

There may be clashes in ids with multiple roots in the same page. This is a follow-up issue to #3772 . See: #3772 (comment)

To Reproduce

https://codesandbox.io/s/preact-useid-multiple-y0qbwq?file=/src/index.js

Expected behavior
What should have happened when following the steps above?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions