-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add `self` to `enqueueActions(...)` * Changeset * improve types and make `system` available too * Update changeset --------- Co-authored-by: Mateusz Burzyński <[email protected]>
- Loading branch information
1 parent
92958fd
commit ae0b05f
Showing
3 changed files
with
93 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
'xstate': patch | ||
--- | ||
|
||
Update the argument object of `enqueueActions(...)` to include the `self` and `system` properties: | ||
|
||
```ts | ||
// ... | ||
entry: enqueueActions(({ self, system }) => { | ||
// ... | ||
}); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters