David Khourshid

Results 87 issues of David Khourshid
trafficstars

This PR adds the ability for any actor logic to spawn an actor, which is a core tenet of the actor model.

You can now stop multiple actors in the `stop(...)` action creator: ```ts const machine = createMachine({ types: { context: {} as { actors: Array; } }, context: ({ spawn })...

XState v5 nice to have
XState v5 post-release

This PR enables developers to mark states as "routes" by providing a `route` config, which is just a normal transition config without the target: ```ts const todoMachine = createMachine({ type:...

XState v5 post-release

This PR introduces a `step(...)` wrapper to persist intermediate state in promises. The `step(name, promiseFn)` function executes the promise created by the `promiseFn` the first time, and persists its result...

XState v5 post-release

we don't implement this in any of the integration packages yet - but this reminds me that we should make `input` required here when it's required _Originally posted by @Andarist...

![CleanShot 2023-12-11 at 19 54 06@2x](https://github.com/statelyai/xstate/assets/1093738/017b6660-bc3b-4d17-9463-830ed418424b)