Resolves Follow Refresh Issue

This commit is contained in:
Refringe 2024-10-12 13:18:49 -06:00
parent 4b4abceb1f
commit 08e4acaf04
Signed by: Refringe
SSH Key Fingerprint: SHA256:t865XsQpfTeqPRBMN2G6+N8wlDjkgUCZF3WGW6O9N/k

View File

@ -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');
}
/**