Working with nested components:
Parent Component
<div>
<livewire:child-component :item="$item" :key="$item->id" />
</div>Pass Data Down
class ChildComponent extends Component
{
public $item;
public function mount($item)
{
$this->item = $item;
}
}Emit to Parent
$this->emitUp('itemUpdated', $item->id);Key Attribute is Important
Always use the :key attribute to help Livewire track components correctly!