Browse Source
useViewport() re-renders on every pan AND zoom. The narrow selector useStore((s) => s.transform[2]) only fires when zoom changes, eliminating unnecessary group overlay re-renders during panning. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>handoff-20260429-1057
1 changed files with 2 additions and 2 deletions
Loading…
Reference in new issue