Skip to content

Commit

Permalink
Update friends example
Browse files Browse the repository at this point in the history
Co-authored by: HartS
  • Loading branch information
davidkpiano committed Jan 13, 2024
1 parent 24be062 commit 2ba2d7f
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions examples/friends-list-react/src/friendMachine.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { assign, fromPromise, setup } from 'xstate';

export const friendMachine = setup({
types: {} as {
context: {
types: {
context: {} as {
prevName: string;
name: string;
};
events:
},
events: {} as
| {
type: 'SET_NAME';
value: string;
Expand All @@ -19,10 +19,11 @@ export const friendMachine = setup({
}
| {
type: 'CANCEL';
};
input: {
},
input: {} as {
name: string;
};
},
tags: {} as 'read' | 'form' | 'saving'
},
actors: {
saveUser: fromPromise(async () => {
Expand Down

0 comments on commit 2ba2d7f

Please sign in to comment.