I have two different components named address and tel on same page and route with same eloquent.
<livewire:address-comp />
<livewire:tel-comp />
the address component show
public $general;
in mount funtion : $general= General::first();
$general->name;
the tel component show
public $general;
in mount funtion : $general= General::first();
$general->tel;
app load each eloquent in mount function, my question goes that is this style inappropriate and makes app slow? repeating reading from the database is a bad solution? @if then what is the best?
thank you.