menu

Statecharts

Statecharts are a precise, visual way of modeling the behaviour of complex reactive systems. They describe how things work, and can help you get your code doing exactly what you want.

Channels
Team
Posts
Members
Info

large app best practices

I'm wondering what the best practices for setting up machines within a large app are. Is it good to have them setup in accordance with your routes?

thumbsup
0
message-simple
0

XState Game v.2

Based on feedback from XState Evac, a small game concept that teaches finite-state machines & XState, I'm developing a new game using a different approach. If you would like to be notified when it's released, you can sign up here. https://bradwoods.io/subscribe

thumbsup
0
message-simple
0

XState Chat: Now on Discord!

Hey, just wanted everyone to know that we're moving XState-related chat to Discord for easier communication. 💬 Invite link: https://discord.gg/xtWgFTgvNV For XState-related discussions, please use GitHub Discussions: …

thumbsup
0
message-simple
0

Local xstate visualizer

Hi - does anyone know if there is a way to run the visualizer locally and import (nested) machines into it rather than having to paste them into the UI. Seems like a great tool but I would love it to be able to do a little bit more. Alternatively are there any other tools…

thumbsup
3
message-simple
19

Experimental SCXML-esque JSX pragma for Xstate

Any feedback or PRs welcome https://github.com/bobcat-pixel/statechart-jsx

thumbsup
0
message-simple
1

XState on invoke service cancel

Is there a way to send an event as a service is cancelled or as a parent state changes? I'm opening a connection to a database as a service and I close it when my service is completed. I want to make sure that it gets closed if state is changed unexpectedly. Actually, I'm pretty…

thumbsup
0
message-simple
2

Does anyone know status of Yakindu xstate integration?

It fails when I try to install it, saw a post from a few months ago noting it was experimental but wasn't sure of status of that

thumbsup
0
message-simple
0

Best practices or solutions for re-using & extending statecharts

I have encapsulated some common behaviour (say loading a set of records) within a statechart so I can re-use that in other places within the application. This works fine and is a simple statechart with 4 states (idle, loading, success, error) that you supply with a search…

thumbsup
0
message-simple
10

Is there a way to send an event to an unknown number of child actors?

I'm building a machine that displays multiple lists of vehicles (dealerships). Each list of vehicles is an actor that is capable of loading more vehicles from memory as a user scrolls down on the UI. The user may select a different dealership and a new actor will be spawned. My…

thumbsup
0
message-simple
4