Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

Performance optimisations

Compare
Choose a tag to compare
@asgvard asgvard released this 28 Mar 12:44
· 127 commits to master since this release

In this release we removed usage of React Context that was keeping the current focused element on the screen. Context caused all focusable components to get re-rendered every time you change focus to another element. Now each component has its own "focused" state that is changed by the spatialNavigation service externally. This makes it to re-render 2 components at a time - the one that got new focus and the one that lost focus.