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

How do you force an observable to complete? (invoke not transitioning to onDone)

Follow up from here: https://spectrum.chat/statecharts/general/ondone-not-working-after-invoked-observable~452bafec-4ed2-46df-9b25-dafb1d3f04e9 My obs isn't transitioning to onDone =(. When I use a normal observable that i created with a complete() call, or when i add take(#) to…

thumbsup
0
message-simple
4

Rendering views with state machines

The way I usually see state machines implemented in frameworks like Vue, React or Svelte is by using conditional rendering (like v-if in Vue, or {#if}...{/if} in Svelte). The machine's current state is used as the condition and the framework renders the view or component…

thumbsup
1
message-simple
3

First time using x-state (quick chart review?)

Hi, getting my head in to start charts and x-state during these many indoor hours! I thought I would try to model my garage door, https://xstate.js.org/viz/?gist=37a6d2c4e4d160b4b859514407b528ba …

thumbsup
0
message-simple
2

hey all

Just saying hi, new to xstate and statecharts, read the docs, consuming all related content on YouTube, blogs and listed on xstate site. Absolutely loving xstate so far, have tried (and failed a few times) to build some machines, mostly replacing complex nested Formik tabbed…

thumbsup
1
message-simple
1

I have found my people!

Reading the XState docs again and how is it only now that I notice the 'Community' link up there? Better late than never. I found XState, and the concept of state machines, early last year. In the latter half of the year I got to use them at work, building a process using formal…

thumbsup
3
message-simple
1

Create dynamic state machine

Hi, Can I create a dynamic machine that the path I can take is chang according to history. for example, I have 3 states "eat", "sleep", "walk" I can start with each of the state. …

thumbsup
0
message-simple
4

onDone not working after invoked observable?

Stuck. Nut sure if this is a bug or not. Invoked an observable. Doesn't transition to called state in the invoked.onDone parameter. I can get a simple invoked promise to resolve and transition, but the observable doesn't =( …

thumbsup
0
message-simple
2

@xstate/test with useMachine hook

I am creating a model based test using the @xstate/test in an app using React with the useMachine hooks for xstate. Have defined a few tests on the state's meta object (to check if the correct content is displayed in the react component based on the state transitions). This…

thumbsup
2
message-simple
8

Okay I give up -- sending events to an actor from React

Trying to get actors to work with react. I feel like I'm close. I can spawn them fine (The 'test1' logs correctly) But when I click the button to send the event to the actor, …

thumbsup
0
message-simple
4

Since David is also an expert in RxJs programming - when will be there RxState?

It would allow for seamless integration with RxJs. Xstate combined with RxJs would be a perfect solution for the component state problem.

thumbsup
0
message-simple
2