Skip to content

feat: pass the original-to-duplicate id map to onDuplicate - #722

Open
barnabasmolnar wants to merge 5 commits into
dwelle:masterfrom
barnabasmolnar:barnabasmolnar/on-duplicate-id-map
Open

barnabasmolnar wants to merge 5 commits into
dwelle:masterfrom
barnabasmolnar:barnabasmolnar/on-duplicate-id-map

Conversation

@barnabasmolnar

Copy link
Copy Markdown

Duplicating copies customData as is, so any element ids kept there still point at the originals. Hand the host the origIdToDuplicateId map that duplicateElements already builds, as a third onDuplicate argument, on every duplication path (duplicate action, alt-drag, paste, library insert) so it can repoint them.

dwelle and others added 5 commits September 15, 2026 14:19
Duplicating copies customData as is, so any element ids kept there still
point at the originals. Hand the host the origIdToDuplicateId map that
duplicateElements already builds, as a third onDuplicate argument, on
every duplication path (duplicate action, alt-drag, paste, library
insert) so it can repoint them.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@dwelle
dwelle force-pushed the master branch 2 times, most recently from 150a4a3 to 10a08e5 Compare September 21, 2026 08:45
@dwelle
dwelle force-pushed the master branch 3 times, most recently from cf91ce7 to aef0851 Compare October 1, 2026 14:58
@dwelle
dwelle force-pushed the master branch 4 times, most recently from 63d8bbe to ddee6e5 Compare October 12, 2026 12:37
@dwelle
dwelle force-pushed the master branch 2 times, most recently from 5e7e32b to f499d71 Compare October 20, 2026 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants