Posts
Chat
Members
Info
·1y·Pinned# General
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…
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…
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.
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…
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…
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…
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 …
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?
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. …
0