-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[v5] System for all actor logic (#4055)
* Ensure all actors have access to the system * Oops, forgot fromCallback * Split up tests * Add changeset
- Loading branch information
1 parent
df55ac0
commit eb7c8b3
Showing
7 changed files
with
267 additions
and
31 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,17 @@ | ||
--- | ||
'xstate': major | ||
--- | ||
|
||
The `system` can now be accessed in all available actor logic creator functions: | ||
|
||
```ts | ||
fromPromise(({ system }) => { ... }); | ||
|
||
fromTransition((state, event, { system }) => { ... }); | ||
|
||
fromObservable(({ system }) => { ... }); | ||
|
||
fromEventObservable(({ system }) => { ... }); | ||
|
||
fromCallback((sendBack, receive, { 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
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
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
Oops, something went wrong.