Skip to content

Add support to group actions? #331

@mrcoles

Description

@mrcoles

Hi, thanks for this repo! Feature request—it’d be really nice if I could group actions in the history, so one or more get grouped in a single undo action.

An example use-case would be when an element’s position is stored in state along with other attributes and I might want a sequence of position changes to group together while other attribute updates would be individual states in the history.

In the meantime, my workarounds are either trying to manage additional state in a separate context (which solves a lot of the scenarios, but eventually gets dodgy) or I could switch to redux and use redux-undo, which allows you set a custom grouping function.

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