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
chore(xstate): Set predictableActionArguments to true #2569
Conversation
🦋 Changeset detectedLatest commit: 66284cc The changes in this PR will be included in the next version bump. This PR includes changesets to release 4 packages
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Do we have a separate ticket already for the refactor work we should do here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Yes, I'll share it async. |
Description of changes
This sets
predictableActionArugments
totrue
, as suggested inxstate@4.33.0+
:We tried this in #2468, but we found some regressions with Authenticator usages. Xstate has resolved them now:
predictableActionArguments
statelyai/xstate#3563predictableActionArguments
statelyai/xstate#3549predictableActionArguments
flag statelyai/xstate#3541Issue #, if available
See previous PR for technical details: #2468.
Description of how you validated changes
E2e test passing this time.
Notes
It's worth noting that we have some code that does not follow the best practices (statelyai/xstate#3533 (comment)). That'll be a separate refactor task, but will help prevent these problems in the future.
Checklist
yarn test
passessideEffects
field updatedBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.