Skip to content

Force refresh of <livewire:commentions.comments> component#105

Description

@bazalt

Hi there,
First, thanks for this package 馃檹.

I'm displaying comments and commenting form form on a custom Filament resource page using

<livewire:commentions.comments :record="$this->record" :paginate="true" per-page="5" pollingInterval="60s"  />

In my associated Commentable Model, I implemented getComments() method to meld associated spatie/laravel-activitylog entries, so status updates are listed within comments. This works fine.

But I'd like to trigger the refresh of the commentions.comments view to reflect the status changes as soon as the record is saved, rather than waiting for the polling to be triggered. Is there a way to achieve this?

Thanks

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions