Target notifications component for refresh
This commit is contained in:
@@ -15,6 +15,11 @@
|
||||
}
|
||||
|
||||
succeed(() => {
|
||||
if (window.Livewire?.dispatchTo) {
|
||||
window.Livewire.dispatchTo('notifications', 'notificationsSent');
|
||||
return;
|
||||
}
|
||||
|
||||
window.Livewire.dispatch('notificationsSent');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user