Skip to content

Conversation

@jamiew
Copy link

@jamiew jamiew commented Dec 18, 2025

fixes some rendering bugs on the frontend, notably a hooks violation

  • VisualizerCanvas3D: move useEffect before conditional return to fix hooks rules violation
  • RegionSelector: fix stale closure by using ref for localRegion in mouseup handler
  • Index: clarify source removal logic with explicit isLastSource check
  • useRegionRandomizer/usePlayMode: use ReturnType for browser compat

- VisualizerCanvas3D: move useEffect before conditional return to fix hooks rules violation
- RegionSelector: fix stale closure by using ref for localRegion in mouseup handler
- Index: clarify source removal logic with explicit isLastSource check
- useRegionRandomizer/usePlayMode: use ReturnType<typeof setInterval> for browser compat
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