From 797bac33700d1015b03aca2f8f72607690ee3232 Mon Sep 17 00:00:00 2001 From: Sidharth Vinod Date: Thu, 20 Oct 2022 12:16:56 +0530 Subject: [PATCH] Comments --- src/lib/util/state.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/util/state.ts b/src/lib/util/state.ts index be346505..75728ac9 100644 --- a/src/lib/util/state.ts +++ b/src/lib/util/state.ts @@ -93,6 +93,7 @@ export const stateStore: Readable = derived( [inputStateStore], ([state], set) => { if (!q) { + // Initialize the queue for first time. q = new AsyncQueue(async (state: State) => { const newState = await processState(state); set(newState);