hyperframes
hyperframes copied to clipboard
fix(studio): break iframe ref update loop causing flickering
Summary
- Break infinite update loop between
handlePreviewIframeRef(App.tsx) andonIframeRefeffect (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
setPreviewIframewith identity check; use ref foronIframeRefcallback 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