Hydrate Auth Follows

This change hydrates the authFollowerIds on component render.
This commit is contained in:
Refringe 2024-10-09 14:15:01 -06:00
parent 5cfffef2b4
commit a3c4fed437
Signed by: Refringe
SSH Key Fingerprint: SHA256:t865XsQpfTeqPRBMN2G6+N8wlDjkgUCZF3WGW6O9N/k

View File

@ -23,6 +23,16 @@ class FollowCards extends Component
#[Locked]
public Collection $authFollowIds;
/**
* Render the component.
*/
public function render(): View
{
$this->updateAuthFollowIds();
return view('livewire.user.follow-cards');
}
/**
* Called when the user follows or unfollows a user.
*/
@ -38,12 +48,4 @@ class FollowCards extends Component
$this->dispatch('auth-follow-change');
}
/**
* Render the component.
*/
public function render(): View
{
return view('livewire.user.follow-cards');
}
}