David Khourshid

Results 87 issues of David Khourshid

XState v5 post-release

You can now strongly type `meta` on state nodes and transitions via `stateMeta` and `transitionMeta` respectively: ```ts import { createMachine } from 'xstate'; const machine = createMachine({ types: { stateMeta:...

XState v5 post-release

The `stateNode` where an action or guard originates can now be read in the action or guard's provided implementation, or inline: ```ts const machine = createMachine({ initial: 'idle', states: {...

XState v5 nice to have

needs to be revisited

needs to be revisited

This PR introduces an `actor.reset(persistedState?)` method to reset an actor, either to its original initial state or a specified state. This can be a mechanism for actor supervision, where a...

needs to be revisited

Option A pretty please 🎁 Apologies about the initial event misunderstanding - I thought the initial state was the state machine before any init action had gone in, since I...

Makes sense, thanks for letting us know about the fix @Andarist and @davidkpiano . Just my two cents because I have no idea what the original bug was - perhaps...

XState v5 nice to have

This PR fixes persisting `state.meta`

needs to be revisited