Skip to content

Rename "clear" to "clearUndoHistory" #24

@funwithtriangles

Description

@funwithtriangles

Having a top level function called clear is quite misleading. This doesn't look like it will clear undo history:

useStore.getState().clear()

I think we should either rename clear to clearUndoHistory or move all of these helper functions into a top level object, undoHelpers. So the above would look like this:

useStore.getState().undoHelpers.clear()

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