menu
announcement

Spectrum is now read-only. 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…

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…

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.

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…

message-simple
0

When to use Context?

XState is an awesome library and I'm loving it. I'm building a React App that will prompt users for information in a wizard-style. After all conditions are met, the app will render an invoice using React Components. Before reading the docs, I wasn't sure where this captured…

message-simple
37

[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…

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 …

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?

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?

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. …

message-simple
0