statelyai / xstate

Actor-based state management & orchestration for complex app logic.
https://stately.ai/docs
MIT License
27.18k stars 1.26k forks source link

pure action is not exported from `actions` #1147

Closed cellog closed 4 years ago

cellog commented 4 years ago

Description

the pure action creator appears to be exported from xstate/lib/actions, but contrary to the docs, is not exported from actions when imported this way:

import { actions } from "xstate";
const { pure } = actions;

Expected Result

pure should exist as documented

Actual Result

can be worked around, but does not import as documented

Reproduction

Additional context

4.9.0

davidkpiano commented 4 years ago

Please try 4.9.1