Skip to content

Commit c947269

Browse files
committed
Add a recommendation to try LiveComponent before resorting to a liveview.
1 parent 790d95d commit c947269

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/phoenix_component.ex

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -946,7 +946,10 @@ defmodule Phoenix.Component do
946946
947947
* When rendering a LiveView inside a regular (non-live) controller/view.
948948
949-
## Options
949+
Most other cases for shared functionality, including state management and user interactions, can be
950+
[achieved with LiveComponents](welcome.html#compartmentalize-state-markup-and-events-in-liveview)
951+
952+
## Options
950953
951954
* `:session` - a map of binary keys with extra session data to be serialized and sent
952955
to the client. All session data currently in the connection is automatically available

0 commit comments

Comments
 (0)