Skip to content

Commit

Permalink
welcome.md callback fix (#2888)
Browse files Browse the repository at this point in the history
Jose already fixed the one above.
  • Loading branch information
thoughtarray authored Oct 27, 2023
1 parent f556459 commit c168a50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guides/introduction/welcome.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ Then on the server, all LiveView bindings are handled with the `handle_event/3`
callback, for example:

def handle_event("inc_temperature", _value, socket) do
{:ok, update(socket, :temperature, &(&1 + 1))}
{:noreply, update(socket, :temperature, &(&1 + 1))}
end

To update UI state, for example, to open and close dropdowns, switch tabs,
Expand Down

0 comments on commit c168a50

Please sign in to comment.