You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 15, 2021. It is now read-only.
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.
The text was updated successfully, but these errors were encountered:
jamesplease
changed the title
Multiple contexts
Utilize multiple contexts for performance
Jun 28, 2019
Consider the following:
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.
The text was updated successfully, but these errors were encountered: