I have parent blade link to child component as below.
<div class="container-fluid">
{{-- user crud component here --}}
@livewire('components.employeecrud.employee-crud')
</div>
And waiting event from child as below.
protected $listeners = [
'dataToParent'
];
public function dataToParent($value)
{
dd($value['user_ids']);
}
Then emit from child to parent on mount method.
public function mount()
{
$this->emitUp('dataToParent',['user_ids'=>[1,2,3]]);
}
Result return nothing that may cause of parent not finished load yet. Any advice or guidance on this would be greatly appreciated, Thanks.