Skip to content

Preserve the extras map after modifying nodes #36

@natanfudge

Description

@natanfudge

In Modify nodes, the documentation states

Note, since extraMap support relies on object identities and this creates entirely new objects in the immutable tree, the extra map becomes invalid on this step. This is not solved in the library yet, but could be done fairly easily.

Since my use case relies on mutating the tree and keeping the comments, I need this functionality. How can this be done?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions