From 78ba61c89ef262b11ef37e0a9684eefde97a2e83 Mon Sep 17 00:00:00 2001 From: Hayleigh Thompson Date: Wed, 24 Jan 2024 08:23:21 +0000 Subject: :bug: Fixed a small logic bug checking if model did update. --- src/client-runtime.ffi.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/client-runtime.ffi.mjs b/src/client-runtime.ffi.mjs index 0b6c58f..16895a7 100644 --- a/src/client-runtime.ffi.mjs +++ b/src/client-runtime.ffi.mjs @@ -82,8 +82,8 @@ export class LustreClientApplication { while (this.#queue.length) { const [next, effects] = this.#update(this.#model, this.#queue.shift()); + this.#didUpdate ||= !isEqual(this.#model, next); this.#model = next; - this.#didUpdate ||= isEqual(this.#model, next); this.#effects = this.#effects.concat(effects.all.toArray()); } -- cgit v1.2.3