Skip to content

Commit

Permalink
Update docs to show the edge case for push_event (#2950)
Browse files Browse the repository at this point in the history
  • Loading branch information
Neophen authored Dec 13, 2023
1 parent 5e64bce commit 968bd54
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lib/phoenix_live_view.ex
Original file line number Diff line number Diff line change
Expand Up @@ -658,9 +658,12 @@ defmodule Phoenix.LiveView do
2. They can be handled inside a hook via `handleEvent`.
Note that events are dispatched to all active hooks on the client who are
handling the given `event`. If you need to scope events, then this must
be done by namespacing them.
Events are dispatched to all active hooks on the client who are
handling the given `event`. If you need to scope events, then
this must be done by namespacing them.
Events pushed during `push_redirect` are currently discarded,
as the LiveView is immediately dismounted.
## Hook example
Expand Down

0 comments on commit 968bd54

Please sign in to comment.