mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-07 12:33:36 +09:00
We found a bug a bug after release. Any instances changes on the page erase instances of other pages. Recently I migrated to normalized instances though didn't have time to migrate utilities and just added patchInstancesMutable utility to synchronize changes from denormalized rootInstance to normalized instances. Though after merging instances of all pages into single list this synchronization started to clear instances not found in rootInstance. To solve this I stopped clearing instances in patchInstancesMutable and migrate delete instances utility to mutating normalized instances directly.