Skip to content

Commit ea8b1a6

Browse files
committed
wip
1 parent 7cddfa8 commit ea8b1a6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

troubleshooting.blade.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@
6161
* Add `wire:key`. As a final measure, adding `wire:key` will directly tell Livewire how to keep track of a DOM element. Over-using this attribute is a smell, but it is very useful and powerful for problems of this nature.
6262

6363
@component('components.warning')
64-
The value you pass to <code>wire:key</code> must be entirely unique to that page. Meaning that you should prefix it, like <code>wire:key="item-{{ $item->id }}"</code>, and avoid using <code>$loop->index</code> to track the individual elements where you can.
64+
@verbatim
65+
The value you pass to <code>wire:key</code> must be entirely unique to that page. Meaning that you should prefix it, like <code>wire:key="item-{{ $item->id }}"</code>, and avoid using <code>$loop->index</code> to track the individual elements where you can.
66+
@endverbatim
6567
@endcomponent
6668

6769
@component('components.code')
@@ -107,7 +109,7 @@ class HelloWorld extends Component
107109

108110
## Root Element Issues {#root-element-issues}
109111

110-
Livewire requires that there be only one HTML element at the root of a components blade view.
112+
Livewire requires that there be only one HTML element at the root of a components blade view.
111113

112114
Having multiple root elements can mean that parts of your view won't work with Livewire correctly, if at all.
113115

0 commit comments

Comments
 (0)