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
Chat
Members
Info
down-caret

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

Reusable machines

It feels like there must be a lot of XState machines that devs have made that could be reused by other developers. Is there any system set up for sharing these machines? I am thinking machines that you could reference (via npm or similar), that comes pre-made, and that you can…

thumbsup
11
message-simple
36

xState in the server in combination with Redis.

I'm writing a messenger bot and i had an idea to user xstate and redis to manage the state of the conversation what do you think about this approach.

thumbsup
4
message-simple
2

Matt Ruby

Hello everyone! I've been working in the front end space for many years. Mostly public retail websites (roomandboard.com). After writing a particularly nasty state machine for a relatively small feature I decided there had to be a better way! That drove me to statecharts and…

thumbsup
2
message-simple
0

[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

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

How to model a network request with statecharts events?

Say if we are doing a network query to fetch something from internet, and we have two states: "LOADING", and "DONE". Then after the response is received, a transition from "LOADING" to "DONE" will be triggered. My question is: should we model this transition with two events…

thumbsup
0
message-simple
0

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

XState React: Pass machine state into child components

Hello guys, I'm finding a way to share machine state between mutiple components, I'm thinking about React Context API. Do you have any better solution?

thumbsup
0
message-simple
2

XState: state call actions then transition to another state

Hello guys, I'm finding a solution for the below issue: This is my state When got event TOGGLE_SORT_LOCATION_NAME, I will action toggleSortLocationName, after toggleSortLocationName finished update context, I want to transition to getLocations. …

thumbsup
0
message-simple
0