aboutsummaryrefslogtreecommitdiff
path: root/test/test_ffi.mjs
diff options
context:
space:
mode:
authorKero van Gelder <keroami@users.noreply.github.com>2023-04-05 14:33:00 +0200
committerGitHub <noreply@github.com>2023-04-05 13:33:00 +0100
commita1b2f0344a59e24ae4d16f1689a02ba72ced2b53 (patch)
tree83843c6afd048b2c770a811696e1947bf915ffaa /test/test_ffi.mjs
parent2feb2a8e1a427cb7545785e2678e4523533c432e (diff)
downloadlustre-a1b2f0344a59e24ae4d16f1689a02ba72ced2b53.tar.gz
lustre-a1b2f0344a59e24ae4d16f1689a02ba72ced2b53.zip
🐛 Avoid a race condition when dispatch is used twice from outside (#8)
* Upgrade examples to lustre 2.0 * Upgrade to gleam 0.27.0 * Fix: avoid a race condition when dispatch is used twice from outside E.g. websocket open + websocket msg arriving Application returns a Cmd from update(model, msg) but the Effect handler is *not* ran be React 18 before the websocket msg-arriving is handled by the Reducer. Result: The Cmd returned by update(model, msg) is dropped silently. --------- Co-authored-by: Kero van Gelder <kero@chmeee.org>
Diffstat (limited to 'test/test_ffi.mjs')
0 files changed, 0 insertions, 0 deletions