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

Upgrade to XState 5 #99

Merged
merged 32 commits into from
Mar 6, 2024
Merged

Upgrade to XState 5 #99

merged 32 commits into from
Mar 6, 2024

Conversation

HerbCaudill
Copy link
Member

This includes, and snowballed from, an effort to straighten out the way errors are handled in the Connection state machine.

The typescript story for XState is much more straightforward in v5, but getting that simplicity did involve inlining the machine definition, along with all of the actions and guards, into the constructor of the Connection class. I've refactored the state machine quite a bit to make it as simple and easy to read as possible, but it's still a beast (see statelyai/xstate#4783).

@HerbCaudill HerbCaudill merged commit 84f217d into main Mar 6, 2024
1 check failed
@HerbCaudill HerbCaudill deleted the xstate5 branch March 6, 2024 14:36
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

1 participant