Skip to main content

Refreshing comments

To reload the comments list immediately (for example after saving the record, so custom getComments() items such as activity-log entries appear without waiting for polling), dispatch the commentions:refresh Livewire event:

protected function afterSave(): void
{
$this->dispatch('commentions:refresh');
}

Or from JavaScript:

Livewire.dispatch('commentions:refresh')