Skip to content

0.1.19

Choose a tag to compare

@github-actions github-actions released this 18 Aug 02:43
· 22 commits to main since this release

Fixes

  • Selectors that build their own container no longer crash the component with Maximum update depth exceeded. useRoomState(room, (s) => Array.from(s.players.values())) and (s) => ({ message: s.myString }) now hold a stable reference between renders. (#13, reported by @under-undefined, who also contributed the regression tests — thank you!)
  • Object-literal selectors return plain snapshot data, the way array selectors already did. (s) => ({ player: s.players.get(id) }) previously handed back the live schema node.