How to emit event from create action to update the widget stats
I hav the following action on my ManageAccountsPage..How to emit event after the data is saved to DB to refresh the widget stats
3 Replies
Solution
You could try ->after()
Thank u...Tried this and works
->after (function ($livewire){
$livewire->emit('refresh');
})
@Leandro Ferreira please help me, I override handleRecordUpdate on EditPage and want to livewire emit event from this function, how can I call $livewire?
ah okey just $this->emit