Skip to content

Commit dfbb8c4

Browse files
committed
Update installation
1 parent 5f211cc commit dfbb8c4

File tree

1 file changed

+2
-63
lines changed

1 file changed

+2
-63
lines changed

docs/installation.mdx

Lines changed: 2 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ You can install XState using your favorite package manager or embed the `<script
1313
<TabItem value="yarn" label="yarn">
1414

1515
```bash
16-
yarn add xstate
16+
yarn add xstate@beta
1717
```
1818

1919
</TabItem>
2020

2121
<TabItem value="npm" label="npm">
2222

2323
```bash
24-
npm install xstate
24+
npm install xstate@beta
2525
```
2626

2727
</TabItem>
@@ -50,64 +50,3 @@ actor.subscribe((state) => {
5050
});
5151
actor.start();
5252
```
53-
54-
Coming soon… Codepen link.
55-
56-
## Exports
57-
58-
```ts
59-
import { doneInvoke, forwardTo, sendParent, sendTo } from './actions.ts';
60-
export { assign } from './actions/assign.ts';
61-
export { cancel } from './actions/cancel.ts';
62-
export { choose } from './actions/choose.ts';
63-
export { log } from './actions/log.ts';
64-
export { pure } from './actions/pure.ts';
65-
export { raise } from './actions/raise.ts';
66-
export { stop } from './actions/stop.ts';
67-
import { createActor, Actor, ActorStatus } from './interpreter.ts';
68-
import { createMachine } from './Machine.ts';
69-
import { mapState } from './mapState.ts';
70-
import { State } from './State.ts';
71-
import { StateNode } from './StateNode.ts';
72-
export { SimulatedClock } from './SimulatedClock.ts';
73-
export { StateMachine } from './StateMachine.ts';
74-
export { getStateNodes } from './stateUtils.ts';
75-
export { waitFor } from './waitFor.ts';
76-
export * from './typegenTypes.ts';
77-
export * from './types.ts';
78-
79-
export {
80-
matchesState,
81-
pathToStateValue,
82-
toObserver,
83-
toSCXMLEvent,
84-
} from './utils.ts';
85-
export {
86-
StateNode,
87-
State,
88-
mapState,
89-
sendTo,
90-
sendParent,
91-
forwardTo,
92-
createActor,
93-
Actor,
94-
ActorStatus,
95-
doneInvoke,
96-
createMachine,
97-
};
98-
export {
99-
fromPromise,
100-
fromObservable,
101-
fromCallback,
102-
fromEventObservable,
103-
fromTransition,
104-
} from './actors/index.ts';
105-
106-
export { stateIn, not, and, or } from './guards.ts';
107-
108-
declare global {
109-
interface SymbolConstructor {
110-
readonly observable: symbol;
111-
}
112-
}
113-
```

0 commit comments

Comments
 (0)