mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-20 20:38:34 +00:00
* fix(studio): reloading the preview swaps in a ready copy instead of blanking * fix(player): report painted once assets are ready and the loader has faded out assetsready fires when the loader fade starts, so a consumer promoting on it can expose a raised or fading panel. painted fires once per document load after the fade completes, with a getter for late listeners; it resets on each load. * fix(studio): promote the shadow preview only when painted, under one wait budget Studio waited for ready plus two frames, which can land while the player's loader panel is still up or fading. It now also waits for the player's painted event. The shadow no longer arms the 5s adapter give-up, so a slow but live load fails only at the single 15s budget. Set-destination availability follows the live iframe across a swap.
9 lines
455 B
TypeScript
9 lines
455 B
TypeScript
// Preview full-reload diagnostics — grep [hf-reload]. Off by default; opt in per
|
|
// session with `localStorage.setItem("hf-reload-debug", "1")` (then reload).
|
|
//
|
|
// A full reload no longer blanks the stage (see useShadowPreviewReload.ts). These lines answer
|
|
// who asked for a reload and why the write was not recognised as Studio's own.
|
|
import { makeStudioDebugLogger } from "./studioDebug";
|
|
|
|
export const logReload = makeStudioDebugLogger("reload");
|