menu
announcement

Spectrum will become read-only on August 10, 2021. Learn more about the decision in our official announcement.

Statecharts

The Statecharts community on Spectrum is (along with spectrum) MOVING TO OTHER PLATFORMS: For statecharts discussions in general go to Statecharts Discussion on GitHub (link) or Gitter (link). For XState-specific questions, go to the XState discussion forum for Q&A or the Stately discord chat to chat.

Channels
Team
Posts
Members
Info

Is there any good port of XState for Swift (iOS/macOS)...

... or implementation of statecharts which covers most of the features of XState?

thumbsup
2
message-simple
4

Hi, does anyone have a good example of state chart for an optimistic update?

I need to control a toggle, which when clicked switches on (or off) and the UI optimistically updates to the new state, whilst also firing an API request to sync with the server. Ideally it would include the concept of loading (which prevents multiple clicks), API success, and…

thumbsup
0
message-simple
6

XState: access current state node name, ID, or metadata in exit action?

Upon leaving any state node with certain properties, I need to record information about that node in an external data store. The purpose is to record progress through the workflow. Then if the user leaves the application and returns later we can orient them properly -- even if…

thumbsup
0
message-simple
6

[New forum] Time for some House Warming at the new forum?

Hi all, don't forget to head over to the new forum over at github that @mogsie(mogsie) kindly put together. It's already getting cozy with links to classic statecharts papers and all :-) Then why not do some House Warming activities, like writing a short self-intro, telling what…

thumbsup
1
message-simple
0

[Statechart theory] Towards composable statecharts

Programming with Statecharts is awesome; they bring a logical visualizable structure to reactive software such as UI, reducing technical debt and enabling performing changes and extensions with confidence. But, awesome as they are, they do not compose: You can not build a big…

thumbsup
2
message-simple
1

XState sendParent throws exception if machine is not invoked

Hi, is it possible to have XState not throw an exception when a machine that's not invoked but has sendParent actions fires? I'm also open to better ways to do what I'm attempting to do. For further context: I have defined 2 machines that handles often paired components within…

thumbsup
0
message-simple
2

[Forum] What are the plans for this forum considering August 10th?

Hi all, @mogsie(mogsie) and team, considering that Will this forum continue with a similar profile on GitHub Discussions? I sure hope so!

thumbsup
1
message-simple
12

Do not join this community! (We've moved.)

Hi. In light of spectrum becoming read only, and this amazing crew of people who understand how to model complex behaviour (or want to), I don't want to leave you in the read-only state. So please humbly accept this "redirect" event so that you might transition to the awesome…

thumbsup
3
message-simple
1

XState Viz Tool: Method to prevent Overlap of Arrows on States

Is there any way in which we can avoid the overlaps of arrows and states in the Viz tool?

thumbsup
0
message-simple
1

Send latest ctx to service

Hey folks, I'm working on a circuit training app, that generates 5-8 minute ab workouts. The circuit timer is a "smart service" that dispatches events based on the time remaining for a given exercise. It dispatches the following …

thumbsup
0
message-simple
1