Closed nayounsang closed 1 day ago
listen(onHistory: StoreListener<R>, filters?: Partial<StoreListenerFilters>) { // flush history so that this listener's history starts from exactly now this._flushHistory() const listener = { onHistory, filters: { source: filters?.source ?? 'all', scope: filters?.scope ?? 'all', }, } this.listeners.add(listener) if (!this.historyReactor.scheduler.isActivelyListening) { this.historyReactor.start() } return () => { this.listeners.delete(listener) if (this.listeners.size === 0) { this.historyReactor.stop() } } }
📝 개요
✔️ To-Do
예상 마감 기한
👀 ETC