Skip to content

chore: Turn predictable action arguments on #3964

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

Merged
merged 4 commits into from
Sep 13, 2022
Merged

Conversation

presleyp
Copy link
Contributor

@presleyp presleyp commented Sep 9, 2022

A recent update gave us a message that we should turn predictableActionArguments on whenever we create an XState machine. Here's what it does: https://xstate.js.org/docs/guides/actions.html

While I was in there, I put some of the keys in a set order just for consistency.

The only case I could find where this should have an effect is in refreshTimelines in the workspace xService, and it should actually make the code behave more as intended than it was before (the assign action is put after another action but previously, would be executed first).

@presleyp presleyp requested a review from a team as a code owner September 9, 2022 00:37
@presleyp presleyp requested review from Kira-Pilot and BrunoQuaresma and removed request for a team September 9, 2022 00:37
Copy link
Collaborator

@BrunoQuaresma BrunoQuaresma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@presleyp presleyp merged commit 99a7a8d into main Sep 13, 2022
@presleyp presleyp deleted the presleyp/xstate-actions branch September 13, 2022 16:54
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.

3 participants