Replies: 1 comment 2 replies
-
You can slice the results to only show some, and maybe allow extending it, but definitely shouldn't just put a 250 in at once You can generally incrementally add to the list at little cost. (doing 50 and then 100 isn't really total processing time slower than doing 100 at once, but will reduce skipped frames). But mainly, just slice the list. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We're using the headless combobox of AlpineJS as a country selector in combination with Livewire. There are two situations where it's a bit too slow for our liking:
This is our Alpine data:
And we filter through it using
x-for="option in filtered"
.Other things that may be relevant:
@js($options)
x-modelable
together withwire:model
. We don't use@entangle
.I don't feel like I can share the full component here as it's part of the paid headless components.
Is there anything I should or could have done to improve the speed of
x-for
or is this just what it is?Screen recording
This shows what happens when I hold my delete button. There is a clear delay at the end.
Beta Was this translation helpful? Give feedback.
All reactions