Skip to content

fix: stop reports grid update loop, add turbopack dev script#73

Merged
WhiteMuush merged 3 commits into
mainfrom
fix/reports-rgl-loop
Jun 19, 2026
Merged

fix: stop reports grid update loop, add turbopack dev script#73
WhiteMuush merged 3 commits into
mainfrom
fix/reports-rgl-loop

Conversation

@WhiteMuush

Copy link
Copy Markdown
Owner

Summary

  • Fix Maximum update depth exceeded in ReportCanvas: RGL onLayoutChange fired on every layout-prop change and always called setLayout, creating an endless render loop. Now skips the update when no tile moved or resized.
  • Add opt-in dev:turbo script (next dev --turbopack) for faster cold compiles; plain dev stays on webpack as the safe default.

Test

  • lint (0 warnings), tsc, production build (23/23) pass locally

🤖 Generated with Claude Code

RGL fires onLayoutChange on every layout-prop change (recreated each
render), and it always called setLayout, feeding an endless
setLayout -> render -> onLayoutChange cycle (Maximum update depth).
Skip the update when no tile actually moved or resized.
dev:turbo runs next dev --turbopack for faster cold compiles; plain dev
stays on webpack as the safe default (react-grid-layout uses require).
contentRect.width is fractional and jitters sub-pixel as tiles auto-fit;
since containerW is a fitHeights effect dependency, the raw value changed
every render and never settled. Round and dedupe it.
@WhiteMuush WhiteMuush merged commit cf81bf6 into main Jun 19, 2026
11 checks passed
@WhiteMuush WhiteMuush deleted the fix/reports-rgl-loop branch June 19, 2026 14:05
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