diff options
author | Hayleigh Thompson <me@hayleigh.dev> | 2024-01-24 08:23:21 +0000 |
---|---|---|
committer | Hayleigh Thompson <me@hayleigh.dev> | 2024-01-24 08:23:21 +0000 |
commit | 78ba61c89ef262b11ef37e0a9684eefde97a2e83 (patch) | |
tree | 3ff8c62fd7faad62d63c8f6a4fe2dac8506c41a1 | |
parent | 817ad4fd02872a54f7102ca885b3675402763d75 (diff) | |
download | lustre-78ba61c89ef262b11ef37e0a9684eefde97a2e83.tar.gz lustre-78ba61c89ef262b11ef37e0a9684eefde97a2e83.zip |
:bug: Fixed a small logic bug checking if model did update.
-rw-r--r-- | src/client-runtime.ffi.mjs | 2 |
1 files changed, 1 insertions, 1 deletions
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()); } |