mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-30 04:12:52 +09:00
Ref https://github.com/webstudio-is/webstudio-designer/issues/696 While normalized array of props give us flexibility with atomic updates we still cannot use it for collaboration because patches are applied with index in this array which may leads to unexpected results when two users collaboate on the same tree, for example both put new prop and edit it before synchronization by the same index, we are getting conflict. To avoid such issues we can switch client representation to maps. Almost all data have ids to use in map as keys. Map makes collaboration almost conflict free.