Pure transition function. Side effects (requests, interim save, onDone) are run by the view when the returned state asks for them: sending → request, code with resending → request again, confirming → confirm, saving → interim save.
onDone
sending
code
resending
confirming
saving
Pure transition function. Side effects (requests, interim save,
onDone) are run by the view when the returned state asks for them:sending→ request,codewithresending→ request again,confirming→ confirm,saving→ interim save.