fix(ui): black screen — isExportingRef.current = isExporting dat truoc khai bao isExporting (TDZ ReferenceError moi render); bo sync, bounce set true/false tuong minh

This commit is contained in:
2026-08-25 07:31:34 +07:00
parent fb59184dd2
commit a00c57d44f
3 changed files with 6 additions and 3 deletions
+2 -1
View File
@@ -17852,8 +17852,9 @@ const App = () => {
isPlayingRef.current = isPlaying;
// Bounce realtime = project đang phát thật; guardPlay (scheduleMidiNoteDispatch)
// phải cho note fire dù isPlayingRef bị render ghi đè =false khi bounce setState.
// (Không sync từ state ở đây — isExporting khai báo sau; bounce set true/false
// tường minh ở triggerBounceExport/finally.)
const isExportingRef = useRef(false);
isExportingRef.current = isExporting;
const [selectionStart, setSelectionStart] = useState(null);
const [selectionEnd, setSelectionEnd] = useState(null);
const [selectionFollowsTempo, setSelectionFollowsTempo] = useState(true);