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
Solution:
You could try ->after()
Jump to solution
3 Replies
Solution
LeandroFerreira
You could try ->after()
ImShehryar
ImShehryarOP2y ago
Thank u...Tried this and works ->after (function ($livewire){ $livewire->emit('refresh'); })
vitti🦸🌘
vitti🦸🌘17mo ago
@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
Want results from more Discord servers?
Add your server