Repository navigation
@xstate/effect@1.0.0-beta.2
Pre-release
Pre-release
·
1 commit
to next
since this release
Minor Changes
-
417e5f4: Callback, event observable, listener, and subscription actors now process events they send to a parent in their own transitions.
createEffectEventStreamLogicactors do the same. Inspection reports each outgoing event on the source transition, and subscribers receive a snapshot notification for that transition. -
74f51ef: Export
causeFromErrorandUnwrapEffectFailureto inspect typed actor failures while preserving the original Effect Cause. Ordinary errors are wrapped withCause.fail.import { Cause } from 'effect'; import { causeFromError } from '@xstate/effect'; const failure = Cause.findErrorOption(causeFromError(event.error));