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

Fix history state entering after transient transitions #1692

Merged
merged 1 commit into from
Dec 6, 2020

Conversation

Andarist
Copy link
Member

@Andarist Andarist commented Dec 5, 2020

fixes #1691

Updating historyValue is done within exitStates procedure which is part of the microstep procedure so this should always keep the very latest resolved values and nothing should be "preserved" from older states.

@changeset-bot
Copy link

changeset-bot bot commented Dec 5, 2020

🦋 Changeset detected

Latest commit: 75a91b0

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
xstate Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@Andarist Andarist force-pushed the fix/history-state-after-transient-enter branch from 7c31d0b to e6e3f89 Compare December 5, 2020 22:54
packages/core/test/history.test.ts Outdated Show resolved Hide resolved
@Andarist Andarist force-pushed the fix/history-state-after-transient-enter branch from e6e3f89 to 75a91b0 Compare December 6, 2020 09:03
@davidkpiano davidkpiano merged commit 577d640 into master Dec 6, 2020
@davidkpiano davidkpiano deleted the fix/history-state-after-transient-enter branch December 6, 2020 14:44
@github-actions github-actions bot mentioned this pull request Dec 6, 2020
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.

None yet

2 participants