Skip to content

Refactor: Optimize Keyboard.addListener to avoid adding listeners on every render #41

@egeakman

Description

@egeakman

Keyboard listeners are re-added on every re-render in SelectionList. I am not sure how significant of a performance issue this introduces, but it's better if we make it more efficient.

We can use useEffect to efficiently manage keyboard listeners.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingrefactorRestructuring project code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions