From 8a8bd401f157e2c5de38cd521dee739389a3900a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Meier?= Date: Fri, 15 Mar 2024 22:20:34 +0100 Subject: [PATCH] Publish v0.3.0-alpha.8 fix not setting running to false in sync/Latest --- package.json | 2 +- src/sync/Latest.ts | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 9a7ee83..8a82f1c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fire-lib-js", - "version": "0.3.0-alpha.7", + "version": "0.3.0-alpha.8", "author": "Sören Meier ", "type": "module", "scripts": { diff --git a/src/sync/Latest.ts b/src/sync/Latest.ts index 80603de..31743b4 100644 --- a/src/sync/Latest.ts +++ b/src/sync/Latest.ts @@ -41,7 +41,10 @@ export default class Latest { this.listeners.forEach(resolve => resolve(true)); this.listeners = []; + // queued as a microtask latest(false); + + this.running = false; }, }; }