Skip to content

How to prevent execution of entry actions after reading persisted state? #1732

Answered by davidkpiano
bennyKY asked this question in General
Discussion options

You must be logged in to vote

You can remove the actions from the resolved state:

resolvedState.actions.length = 0; // remove actions
interpret(machine).start(resolvedState);

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@davidkpiano
Comment options

@jirutka
Comment options

@davidkpiano
Comment options

@bennyKY
Comment options

@davidkpiano
Comment options

Answer selected by bennyKY
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants