Skip to content

Conversation

@myers
Copy link

@myers myers commented Nov 6, 2025

This change adds pre-filtered arrays to the XR store state:

  • controllerStates
  • handStates
  • transientPointerStates
  • gazeStates
  • screenInputStates

Filtering now happens once when input sources change (controller connect/disconnect) instead of on every component render, providing stable references for React 19.

Updated both React and vanilla element implementations to use the pre-filtered arrays.

This laid the ground work to upgrade to zustand 5.

myers added 2 commits November 7, 2025 07:51
Filtering input sources by type now happens once in the store when sources change,
rather than in components on every render. Returns stable array references.
@myers myers force-pushed the fix/react-19-getsnapshot branch from 09a0673 to 4923388 Compare November 7, 2025 12:53
@myers myers changed the title fix: pre-filter input source arrays in store for React 19 compatibility fix: pre-filter input source arrays in store and upgrade to zustand v5 Nov 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant