Alpine optimistic update out of sync #1367
Unanswered
spiffytech
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
For this particular example, if you are updating the Alpine x-data state directly from the server and you are swapping the entire Alpine component as well, then you should try this without using the alpine morph extension to see if that works. Alpine morph was initially developed, by me, but I never used it, to keep client side state even after swapping the html. For example, if you are using tabs, to retain the selected tab state after a swap without having to keep the tab state on the server as well. |
Beta Was this translation helpful? Give feedback.
1 reply
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.
Uh oh!
There was an error while loading. Please reload this page.
-
I set up a toy scenario to test out optimistic updates using Alpine.js, but it's not working. Am I doing something wrong, or is there a bug?
What I want to happen:
What's actually happening:
true+false,false+true)Beta Was this translation helpful? Give feedback.
All reactions