Skip to content

Commit

Permalink
Add changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
davidkpiano committed Nov 18, 2021
1 parent d36f594 commit 515cdc9
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .changeset/good-comics-collect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
'xstate': major
---

Actions and guards that follow eventless transitions will now receive the event that triggered the transition instead of a "null" event (`{ type: '' }`), which no longer exists:

```js
// ...
states: {
a: {
on: {
SOME_EVENT: 'b'
}
},
b: {
always: 'c'
},
c: {
entry: [(_, event) => {
// event.type is now "SOME_EVENT", not ""
}]
}
}
// ...
```

0 comments on commit 515cdc9

Please sign in to comment.