Skip to content

Performance issues when many <Menu> elements exist on one page #3630

Closed
@apazzolini

Description

@apazzolini

What package within Headless UI are you using?

@headlessui/react

What version of that package are you using?

v2.2.0

What browser are you using?

Firefox (but happens on any browser)

Reproduction URL

Describe your issue

As of @headlessui/react v2.1.0, opening / closing a Menu causes all other Menus on the same page to re-render, resulting in noticeable lag. To reproduce, visit the above sandbox and attempt to open a menu on any row.

Thank you!

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