function mountViewer() { const unsub = eventBus.subscribe('mode-change', handler); onUnmount(() => unsub()); } Versioned async operations: