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
Members
Info

Using XState to drive Corvid Applications

Hi, I'm new to this community - nice to be here :) I've been experimenting with statecharts and xstate for a while, and I believe using statecharts for modeling UI is very promising, and also from my experience a lot of fun. Most of my experience with it was using React. Lately,…

thumbsup
0
message-simple
0

Is there a way to access meta of a state from an action?

thumbsup
0
message-simple
0

XState Viz. failing to visualize

I am trying to visualize a state machine using https://xstate.js.org/viz/. After pasting the machine's config, when I update, the website goes blank and the browser's console shows following error : TypeError: undefined is not an object (evaluating…

thumbsup
0
message-simple
0

StateChart as a prototyping and communication tool

Hey everyone, I'm looking for recommendations on tools, techniques, and resources. Today I've stumbled upon the @davidkpiano presentation and could immediately imagine that this approach gonna be a standard in soft dev. I'm Product designer focused on SaaS and I'm looking for…

thumbsup
1
message-simple
1

State Designer

Hey all, I've been working on a statecharts-based tool named State Designer. It has two main parts: a JavaScript state management library—very similar to xstate but with fewer features and a more simple API—and a free online IDE for designing and prototyping states. Here's a…

thumbsup
11
message-simple
3

Where are the Server-side statechart libraries/tooling?

TL;DR Maybe I just googled using the wrong keywords when looking for Server-side statechart libraries/tooling; so please post your links/projects/experiences of the server-side! Considering the great strides made in libraries and tooling supporting Client-side Statechart…

thumbsup
0
message-simple
1

@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
4
message-simple
11

Xstate/test | correct approach for testing a model with no UI

I have an app that I want to write. But before actually designing the UI interface, first, I want to design a model and analyze all states, transitions, context, etc. So currently I have no UI at all. I want to be able to test all paths using MBT. …

thumbsup
2
message-simple
1

asEffect

Can someone post some use cases for this ? I have seen the example in the docs but I am not clean when and why to use it .

thumbsup
0
message-simple
3

Ideas for how to "document" my machines using inspect

I'm finding the inspect package to be wonderful eye-candy and a source of inspiration/ideas for how simplify and improve the implementation. I'm working on a react-app with the meta for documentation and playground for my components (cosmos). How are folks using the inspect…

thumbsup
0
message-simple
1