Skip to content

Commit

Permalink
Add changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
davidkpiano committed Jun 28, 2021
1 parent d5e5a71 commit 1b32aa0
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .changeset/curly-bananas-sip.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
'xstate': minor
---

The model created from `createModel(...)` now provides a `.createMachine(...)` method that does not require passing any generic type parameters:

```diff
const model = createModel(/* ... */);

-const machine = createMachine<typeof model>(/* ... */);
+const machine = model.createMachine(/* ... */);
```

0 comments on commit 1b32aa0

Please sign in to comment.