-
Notifications
You must be signed in to change notification settings - Fork 3
Performance issue when used in conjonction with vuetify virtual-scroller #2
Description
Hi,
I'm opening this thread as I discovered that this package seems responsible of some huge performance issues I'm facing with my app.
I basically workaround this issue by creating a computed value based on a list of value coming from this lib and generating a simplified version of it.
If I use directly records in a v-autocomplete (it uses a virtual-scroller behind the scene), I can see my CPU going crazy, page freezes and can take up to 5min to display the 10 items.
If I use the computed value, display is taking some milliseconds.
Do you have any idea why this is happening? Does other people have the same issue?
const recordsForDisplay = computed(() => records.value.map(record=> ({
id: record._jv.id,
name: record.name,
})))
// knowing that
const records = ref([])
records.value = await dataStore.search([
'mytype',
{
params: {
sort: 'name',
page: {
limit: 10,
}
}
},
])P.S: I also opened an issue on Vuetify side as I was first thinking issue was on their side. I believe issue is more on this library now.