hyperframes icon indicating copy to clipboard operation
hyperframes copied to clipboard

fix(studio): break iframe ref update loop causing flickering

Open vanceingalls opened this issue 6 months ago • 0 comments

Summary

  • Break infinite update loop between handlePreviewIframeRef (App.tsx) and onIframeRef effect (NLELayout.tsx)
  • Callback identity change triggered the effect which re-called the callback, causing "Maximum update depth exceeded" in dev mode and intermittent flickering in production
  • Guard setPreviewIframe with identity check; use ref for onIframeRef callback in NLELayout effect deps

Test plan

  • [ ] Studio loads without "Maximum update depth exceeded" error in dev build
  • [ ] No flickering in production build
  • [ ] Sub-composition drill-down still works

🤖 Generated with Claude Code

vanceingalls avatar May 12 '26 23:05 vanceingalls