Hi! I got stuck in one point of my Elm program and need another point of view to understand what is happening behind the code.
The doubt I have is I don’t know why the view is not properly refreshed after adding the pattern matching for choosing which div that should be shown:
view : Model -> Html Msg view model = let otherDiv : Html Msg otherDiv = case model.current of Change t -> div [name "Processed div"] [ text (String.reverse t)] _ -> div [name "Default div"]  in div  [ input [ placeholder "Text to reverse", value model.content, onInput Change ]  , otherDiv ]
On the presented case, it shows the default div and, after adding some text to the input, the div swap does not happen. Thus the reversed text is not shown. Why? How can I make it work?
This is a blueprint of what is happening on my code, where I choose which portion of html should be viewed depending on the last message. When the a message is produced I update the model.