diff --git a/app/Livewire/User/FollowCards.php b/app/Livewire/User/FollowCards.php index b95affe..c1847e1 100644 --- a/app/Livewire/User/FollowCards.php +++ b/app/Livewire/User/FollowCards.php @@ -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'); - } }