Skip to content

Start batch when tracking atoms #3

@brunozoric

Description

@brunozoric

Heya!

I found an issue with startBatch when using track atoms functionality.
When you run startBatch() it takes present state and pushes it to the history past and if there are no changed atoms history state remains like there were some changes. When you go "undo" you actually do not undo since previous state is same as current state. And if you started/ended batch few (dozen times) you have dozens of equal states in history.past array.

I'll try to fix, but if you have an idea how to do it, I'm all ears :)

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