mirror of
https://github.com/sp-tarkov/forge.git
synced 2025-02-12 20:20:41 -05:00
Hydrate Auth Follows
This change hydrates the authFollowerIds on component render.
This commit is contained in:
parent
5cfffef2b4
commit
a3c4fed437
@ -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');
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user