If InfoMessage depends on the currentUser already being updated (for example you want to display…
Berry Groenendijk
1

That is exactly what this branch does.

  • First, a new model is created where current username is set to the name of the new user (so username is updated)

{model | currentUser = newName }

  • Then, this is passed to the update function to display the message.

|> update (InfoMessage …)

Show your support

Clapping shows how much you appreciated Wouter In t Velt’s story.