mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-09 22:14:29 +09:00
Ref https://github.com/webstudio-is/webstudio-builder/issues/1116 Slot is copy pastable part of the tree which is always in sync. Kinda like primitive components. The idea is the following. Slot is copy pasted as any other instance though its children are preserved as is without cloning with new ids. This lead to the problem with multiple slot children. While copy paste they are preserved as is though when add new child to slot, the other instance of it will not get new child. To workaround this we add another Fragment component which groups all children into single one and new children are always reflected in all slot copies.