aboutsummaryrefslogtreecommitdiff
path: root/src/lustre.ffi.mjs
diff options
context:
space:
mode:
authorHayleigh Thompson <me@hayleigh.dev>2023-10-21 23:01:52 +0100
committerHayleigh Thompson <me@hayleigh.dev>2023-10-21 23:01:52 +0100
commit992156f0d19e498bb1de08f15a0d33ff490c9a7c (patch)
tree83ccf3e4d1e5a9b061635021233b92352df4c86e /src/lustre.ffi.mjs
parentcc232e66da09b5ae5b8b39cade79dd561f5b459e (diff)
downloadlustre-992156f0d19e498bb1de08f15a0d33ff490c9a7c.tar.gz
lustre-992156f0d19e498bb1de08f15a0d33ff490c9a7c.zip
:bug: Fixed a bug where component attributes weren't compared for equality properly.v3.0.9
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]);
}