We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dffb006 commit 790db19Copy full SHA for 790db19
packages/node_modules/overmind/src/statemachine.ts
@@ -1,7 +1,5 @@
1
import { PROXY_TREE, VALUE } from 'proxy-state-tree'
2
3
-import { Derive } from './'
4
-
5
export type StatemachineDefinition<States extends string> = {
6
initial: States,
7
states: {
@@ -27,7 +25,7 @@ class StateMachine<States extends string> {
27
25
Object.keys(definition.states).reduce((aggr, key) => {
28
26
aggr[key] = function (entry, exit) {
29
if (definition.states[this.current].includes(key as any)) {
30
- if (this[CURRENT_EXIT]) this._currentExit()
+ if (this[CURRENT_EXIT]) this[CURRENT_EXIT]()
31
this[VALUE][CURRENT_EXIT] = exit
32
this.current = key as any
33
const tree = (this[PROXY_TREE].master.mutationTree || this[PROXY_TREE])
0 commit comments