Skip to content

Update context with assign from a activity #1278

Answered by Andarist
DirkWolthuis asked this question in General
Discussion options

You must be logged in to vote

Yes, assign is an action creator - it just returns an object describing what should happen when interpreter sees it. You cant just update the context at arbitrary times like you would like to. Statecharts prefer modelling explicit behaviors and logic so u need to wire this with a parent using events communication.

Replies: 2 comments 3 replies

Comment options

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

@DirkWolthuis
Comment options

Answer selected by davidkpiano
Comment options

You must be logged in to vote
1 reply
@Andarist
Comment options

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