Elm send message to mailbox in update function [duplicate]
问题 This question already has an answer here : trigger an Action from the Update function (1 answer) Closed 3 years ago . I've the following Action handler in my update function of Elm StartApp MUV framework. signupAlertMailbox : Signal.Mailbox String signupAlertMailbox = Signal.mailbox "" update : Action -> Model -> (Model, Effects Action) update action model = case action of Submit -> let isInputValid = Dict.foldl (\fieldName fieldState validity -> if validity then (fieldState == IsOkay) else