Skip to content

disable node reuse #154

@msmoiz

Description

@msmoiz

Is it possible right now to disable node reuse? I would like to implement undo/redo semantics on top of indextree, and that would likely be much easier if I could remove nodes at some point (e.g., delete operation), store the NodeId, and then reinstate them using the same id (e.g., on undo). It sounds like I may not be able to do that though because the node could have been reused in between the delete and undo operations and so even if I put the deleted node data back in its original place, any id references to it would no longer be valid.

Am I understanding that correctly? Has this come up before/do you have recommendations for this use case? I have some ideas for how to work around this behavior, but it would be great to get your thoughts.

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