From 3f46395bd20b0c5da54440aeb1192c117e63192e Mon Sep 17 00:00:00 2001 From: wukko Date: Wed, 18 Dec 2024 17:10:08 +0600 Subject: [PATCH] web/state/queue: add `nukeEntireQueue()` --- web/src/lib/state/queue.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/web/src/lib/state/queue.ts b/web/src/lib/state/queue.ts index c586623d..ee431743 100644 --- a/web/src/lib/state/queue.ts +++ b/web/src/lib/state/queue.ts @@ -58,4 +58,13 @@ export function removeFromOngoingQueue(id: string) { }); } +export function nukeEntireQueue() { + update(() => { + return {}; + }); + updateOngoing(() => { + return {}; + }); +} + export { queue, ongoingQueue };