Skip to content

Poor performance on large lists when using templates #678

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Bartozzz opened this issue Oct 10, 2018 · 0 comments
Open

Poor performance on large lists when using templates #678

Bartozzz opened this issue Oct 10, 2018 · 0 comments

Comments

@Bartozzz
Copy link

My data set contains ~3000 elements, each one containing 4 properties:

[
  {
    "id": "",
    "name": "",
    "fullName": "",
    "imageUrl": ""
  }
]

When I try to customize the option slot, as follows:

<VueSelect label="name" :options="options" :onChange="">
  <template slot="option" slot-scope="option">
    {{ option.fullName}}
    <b-badge class="ml-auto" variant="primary" pill>{{ option.id }}</b-badge>
  </template>
</VueSelect>

… there's a visible delay on selecting items from the dropdown:

[Violation] 'message' handler took 278ms
[Violation] 'message' handler took 290ms
[Violation] 'message' handler took 279ms
[Violation] 'message' handler took 269ms
[Violation] 'message' handler took 267ms
[Violation] 'message' handler took 647ms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants