Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: do not add to history when the present state did not change #337

Merged
merged 1 commit into from
Sep 26, 2023

Conversation

frontendphil
Copy link
Owner

Fixes #332

When the next state is equal (object equality) to the current state, don't change past and future.

@vercel
Copy link

vercel bot commented Sep 26, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
react-undo-redo ✅ Ready (Inspect) Visit Preview Sep 26, 2023 6:42pm

@frontendphil frontendphil merged commit 9a3a062 into main Sep 26, 2023
2 checks passed
@frontendphil frontendphil deleted the feat/add-only-when-changed branch September 26, 2023 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Don’t add to history if action is a noop?
1 participant