diff --git a/app/Livewire/User/FollowCard.php b/app/Livewire/User/FollowCard.php index 859db82..1227aa9 100644 --- a/app/Livewire/User/FollowCard.php +++ b/app/Livewire/User/FollowCard.php @@ -75,6 +75,11 @@ class FollowCard extends Component #[Locked] public Collection $followUsers; + /** + * The events the component should listen for. + */ + protected $listeners = ['refreshComponent' => '$refresh']; + /** * The number of users being displayed. */ @@ -148,6 +153,8 @@ class FollowCard extends Component { // Update the collection of profile user's followers (or following). $this->followUsers = $this->profileUser->{$this->relationship}()->get(); + + $this->dispatch('refreshComponent'); } /**