Viewerframe Mode Refresh Hot [ 2024 ]
function mountViewer() { const unsub = eventBus.subscribe('mode-change', handler); onUnmount(() => unsub()); } Versioned async operations:
async function activateMode(instanceId, mode) { const initId = Symbol(); currentInitId = initId; viewerframe mode refresh hot
let currentInitId = null;
const setModeDebounced = debounce((m) => setMode(m), 150); Unique instance IDs: function mountViewer() { const unsub = eventBus