xstate
xstate copied to clipboard
Actor-based state management & orchestration for complex app logic.
### Description  1. spawn actor in context, 2. storage ctx into indexDb 3. got error ### Expected result wish to storage whole ctx include actor into indexDb so that...
fix visualizer link
### Description The nextState call is now affecting the current state and creating transisions. ### Expected result nextState should return the next state without affecting the current state of the...
### Description It seems `entry` and `exit` actions are fired repeatedly when the state is entered/exited. I stumbled upon the bug somewhat accidentally and noticed an entry action running 103...
### Description Working with `machine.transition()` and other implementations of `StateValue`, the type is not provided. The type safety is provided elsewhere, ie [state.matches](https://github.com/statelyai/xstate/blob/6abfc5afa7945fcb6b58cc9911bd37bec9ac573d/packages/core/src/State.ts#L318): ```typescript TSV extends TResolvedTypesMeta extends TypegenEnabled ?...
The biggest changes: - ~~`ObservableActorRef`~~ is removed - **`interpret` now works with any `Behavior`: `interpret(behavior)`** - The `Behavior` interface now has `Behavior.getSnapshot`, which is important for determining which "state" should...
xstate-solid
This is an implementation of [SolidJS](https://www.solidjs.com) hooks for XState. This package was inspired by [this `useMachine` hook](https://codesandbox.io/s/xstate-solid-example-dgpd7?from-embed=&file=/useMachine.js) created by @ryansolid. I've leveraged SolidJS' store and signal (along with the `reconcile`...
**Description** XState inspector is slow with large context objects A trace is attached. The active machines on the page have contexts that `JSON.stringify()` to the following lengths: ``` { "main":...
fixes https://github.com/davidkpiano/xstate/discussions/1603#discussioncomment-117608