Race condition #4746
Unanswered
pkorzeniewski
asked this question in
5. Bugs
Race condition
#4746
Replies: 1 comment
-
|
This mainly has to do with how the value changes are tracked and other things to prevent running the same effects many times, or worse, circularly. Conceptually this one should work, but the issue fromes from the data.x queuing and it runs before the data = $store.data, but since data.x already evanulated in that chain, it isn't requeued. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
With this JS:
and this HTML:
Alpine first correctly renders
1 1, but once the timeout is executed, it renders0 2instead of2 2. If I delay execution ofAlpine.store('data', { x: 2, y: 2 });withsetTimeoutit works fine, but the delay after which it works is variable -setTimeout(..., 0)doesn't always work.Beta Was this translation helpful? Give feedback.
All reactions