David Khourshid
David Khourshid
From #4954
Added support for synchronizers in XState, allowing state persistence and synchronization across different storage mechanisms. - Introduced `Synchronizer` interface for implementing custom synchronization logic - Added `sync` option to `createActor`...
```ts const machine = createMachine({ context: { number: 42 }, invoke2: createInvoke({ id: 'double', input: ({ context }) => ({ count: context.number }), src: fromPromise(async ({ input }: { input:...
(WIP) v6
Added `onStop` handler to actors which allows registering callbacks that will be executed when an actor is stopped. This provides a way to perform cleanup or trigger side effects when...