aboutsummaryrefslogtreecommitdiff
path: root/src/lustre.ffi.mjs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lustre.ffi.mjs')
-rw-r--r--src/lustre.ffi.mjs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lustre.ffi.mjs b/src/lustre.ffi.mjs
index f29e7ea..4555277 100644
--- a/src/lustre.ffi.mjs
+++ b/src/lustre.ffi.mjs
@@ -192,7 +192,7 @@ export const setup_component = (
// messages when the value is an object or array: it might not have
// changed but its reference might have and we don't want to trigger
// useless updates.
- if (decoded.isOk() && !isEqual(prev, decoded[0])) {
+ if (decoded.isOk() && !isEqual(prev, value)) {
this.#dispatch(decoded[0]);
}