-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fast sorting on with optimistic updates while saving to server is broken #625
Comments
Hi @mwhnrt , |
mmm.. i discovered something strange. |
@isaacHagoel just tested it and I wasn't able to reproduce the issue either. Also the errors from the console are gone. 🎉 What has been changed? |
Lol. Now I will need to figure out why it works.
I will close the issue after I update the official example.
…On Thu, Jan 16, 2025, 21:16 mwhnrt ***@***.***> wrote:
@isaacHagoel <https://github.com/isaacHagoel> just tested it and I wasn't
able to reproduce the issue either. Also the errors from the console are
gone. 🎉
—
Reply to this email directly, view it on GitHub
<#625 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AE4OZC6N4PBC4S4HKEAJPOL2K6BJDAVCNFSM6AAAAABVEU7QLWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKOJVGEYTONRSGM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Ah okay, it doesn't actually work. it just doesn't revert when the server fails. Okay. I will keep investigating in the original direction. |
okay, now it reverts and I can't reproduce the issue. |
@isaacHagoel sorry to say, I can still reproduce the bug. Took a while, but after some time dragging the items one disappeared. |
I will look into disappearing item but the console error is solved, Correct?
…On Fri, Jan 17, 2025, 10:57 mwhnrt ***@***.***> wrote:
@isaacHagoel <https://github.com/isaacHagoel> sorry to say, I can still
reproduce the bug. Took a while, but after some time dragging the items one
disappeared. Screenshot_2025-01-17-00-54-25-669_com.android.chrome.jpg
(view on web)
<https://github.com/user-attachments/assets/121eff30-b690-4d9f-86cd-486098e16536>
—
Reply to this email directly, view it on GitHub
<#625 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AE4OZCY24YIN6PJN35ROJX32LBBNPAVCNFSM6AAAAABVEU7QLWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKOJXGE2DMOJQGA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
just an update. The item doesn't disappear. If you inspect the DOM you'll see that it's there. There problem is that it stays with the styling of the shadow item (but without the attribute that marks it as the shadow item in the 'items' list). Next step is to figure out the exact race condition that causes it. |
I fixed the issue (in version 0.9.55) and updated the official example. |
Thanks @isaacHagoel will test that tomorrow! |
Moving items fast on the "Svelte dnd action - saving to a 'server' with optimistic updates and recovery from failed operations" example sometimes breaks the whole list by removing items.
each_key_duplicate.mov
This goes aloing with a
Uncaught Svelte error: each_key_duplicate
error and is possibly related to handling an error response from the faked server:For it being easier to reproduce I just disabled the
alert()
when the "server" fails. Here's my playground which is directly forked from the example without any further changes: https://svelte.dev/playground/7a5c54b988734e478b41b4e947bcc06a?version=5.17.4I originally discovered this bug in our application but found the same happens with the basic example here.
System:
macOS 14.6.1 (23G93)
Chrome 131.0.6778.265
The text was updated successfully, but these errors were encountered: