Skip to content
This repository was archived by the owner on Jul 15, 2021. It is now read-only.
This repository was archived by the owner on Jul 15, 2021. It is now read-only.

Utilize multiple contexts for performance #21

@jamesplease

Description

@jamesplease

Consider the following:

  • Subtree A is focused
  • Subtree A root has a hook checking if it is focused
  • Subtree B is changing dynamically based on user input, and many, many focusable elements are being created/destroyed

In this situation, Subtree B is changing the global context (because the focus tree nodes are changing), causing Subtree A to render unnecessarily.

The focus hierarchy state should be separate from the node state. That way, consumers of what's focused won't be affected by changes to the rest of the focus tree state.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions