Skip to content

Commit

Permalink
Add changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
davidkpiano committed Oct 21, 2020
1 parent 7a7c758 commit 119db8f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 10 additions & 0 deletions .changeset/cyan-pants-walk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
'xstate': minor
---

Expressions can now be used in the `stop()` action creator:

```js
// ...
actions: stop((context) => context.someActor);
```
2 changes: 0 additions & 2 deletions packages/xstate-scxml/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ function actionToSCXML(action: ActionObject<any, any>): XMLElement {
export function transitionToSCXML(
transition: TransitionDefinition<any, any>
): XMLElement {
// console.log(transition.cond!.predicate);

const elements = transition.actions.map(actionToSCXML);

return {
Expand Down

0 comments on commit 119db8f

Please sign in to comment.