tallstackui
tallstackui copied to clipboard
[Bug]: Select slow
What Happened
I would like to list only the first 10 records in the select, the rest would be visible when using the search within the component, any suggestions guys? I noticed that with more registration the component becomes slower to use. I am loading 700 records.
How to Reproduce
Livewire model:
$this->customers = Customer::select('id', 'name', 'alias', 'document_company')->orderBy('name', 'asc')->get()
->map(fn (Customer $customer) => [
'id' => $customer->id,
'name' => $customer->name,
'description' => "$customer->alias - $customer->document_company",
]);
Blade:
<div class="col-span-6">
<x-select.styled :options="$customers" select="label:name|value:id"
wire:model="customer_id" label="Cliente *" searchable />
</div>
Sample Repository
No response
Laravel Version
11.7.0
Livewire Version
3.4.9
TallStackUI Version
1.26.1
PHP Version
8.2
Operation System
Windows
Notes
No response