I want to be able to call action calculateScore and have it update the machine context
The state looks like this:
"Evaluate": {
entry: ['calculateScore'],
type: "final"
}
Trying to use assign which has no effect
actions: {
calculateScore: (context, event) => {
assign({
score: (context, event) => evaluateScore(context, event)
})
}
}
what's the proper way to accomplish that?