From 44d0df313ff48315161a67006a60265139eecab8 Mon Sep 17 00:00:00 2001 From: Hayleigh Thompson Date: Wed, 12 Jun 2024 17:03:29 +0100 Subject: :bug: Fixed a bug where updates were almost never processed. Oops. --- src/client-runtime.ffi.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client-runtime.ffi.mjs b/src/client-runtime.ffi.mjs index 562f9c4..cf5e7a5 100644 --- a/src/client-runtime.ffi.mjs +++ b/src/client-runtime.ffi.mjs @@ -105,7 +105,7 @@ export class LustreClientApplication { while (this.#queue.length) { const [next, effects] = this.#update(this.#model, this.#queue.shift()); - this.#didUpdate ||= this.#model === next; + this.#didUpdate ||= this.#model !== next; this.#model = next; this.#effects = this.#effects.concat(effects.all.toArray()); } -- cgit v1.2.3