-
Notifications
You must be signed in to change notification settings - Fork 242
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
Value changes many time in instantly when using the multiple move method of LiveList quickly #1518
Comments
Hi @jiwon79, First of all, thank you for the detailed bug report and patience.
I believe this issue is also present on the latest version, but can you confirm you see the same behavior after upgrading? We recommend having the same version for both Unfortunately, we have a few |
Hi! Thank you for response. I am on the same team with @jiwon79
A: We are already using same version for
A: We are creating a Figma-like Design Tool. We have a "Stack" feature, in which user can move index element in Stack. Then when user moving element index in Stack quite fastly, blinking issue appears. Did you know that there are also serious history management issues? History Undo/Redo doesn't work well. If you go back to the days before history.undo() immediately after creating an item, all history records will be deleted, or you can use the History. This problem occurs in liveblocks official demo page too (https://liveblocks.io/document/storage) |
i found that the logic at case of case ServerMsgCode.UPDATE_STORAGE: {
const applyResult = applyOps(message.ops, false);
for (const [key, value] of applyResult.updates.storageUpdates) {
updates.storageUpdates.set(
key,
mergeStorageUpdates(updates.storageUpdates.get(key), value)
);
}
break;
} |
Describe the bug
Value change instantly when using the multiple LiveList move method quickly
To Reproduce
index.ts
content like followingExpected behavior
todos
changes is equal to the number of times themove method
is used.todos
change instantly, the number of times thetodos
changes is more than method used count.Illustrations
2024-03-08.11.14.17.mov
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: