Skip to content

Commit 2dda4b0

Browse files
authored
Fix @stream typo in usage-rules liveview streams example (#6601)
The empty-state example used `@stream.tasks` (singular) but it should be `@streams.tasks` (plural) to match the streams API — consistent with every other example in the file.
1 parent 7c37fa7 commit 2dda4b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

usage-rules/liveview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838
<div id="tasks" phx-update="stream">
3939
<div class="hidden only:block">No tasks yet</div>
40-
<div :for={{id, task} <- @stream.tasks} id={id}>
40+
<div :for={{id, task} <- @streams.tasks} id={id}>
4141
{task.name}
4242
</div>
4343
</div>

0 commit comments

Comments
 (0)