Skip to content

Commit

Permalink
clarify that assigns can only be shared across parent-child LiveViews (
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanosman committed May 8, 2024
1 parent 71b2a0d commit fe52962
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion guides/server/security-model.md
Expand Up @@ -88,7 +88,7 @@ as you would with plug:

We use [`assign_new/3`](`Phoenix.Component.assign_new/3`). This is a
convenience to avoid fetching the `current_user` multiple times across
LiveViews.
parent-child LiveViews.

Now we can use the hook whenever relevant. One option is to specify
the hook in your router under `live_session`:
Expand Down
2 changes: 1 addition & 1 deletion lib/phoenix_component.ex
Expand Up @@ -1149,7 +1149,7 @@ defmodule Phoenix.Component do
## Sharing assigns
It is possible to share assigns between the Plug pipeline and LiveView on disconnected render
and between LiveViews when connected.
and between parent-child LiveViews when connected.
### When disconnected
Expand Down

0 comments on commit fe52962

Please sign in to comment.