Skip to content

Commit 790d95d

Browse files
committed
Add hint about find_live_child/2 to the live_render docs.
1 parent 1939c20 commit 790d95d

6 files changed

Lines changed: 60 additions & 0 deletions

File tree

.idea/.gitignore

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/inspectionProfiles/Project_Default.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/phoenix_live_view.iml

Lines changed: 27 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/phoenix_component.ex

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1011,6 +1011,11 @@ defmodule Phoenix.Component do
10111011
Beware if you set this to `:body`, as any content injected inside the body
10121012
(such as `Phoenix.LiveReload` features) will be discarded once the LiveView
10131013
connects
1014+
1015+
## Testing
1016+
1017+
Note that `render_click/1` will send events to the root LiveView, and you will want to
1018+
`find_live_child/2` to interact with nested LiveViews in your live tests.
10141019
"""
10151020
def live_render(conn_or_socket, view, opts \\ [])
10161021

0 commit comments

Comments
 (0)