Skip to content
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

Expose index #61

Closed
wants to merge 1 commit into from
Closed

Expose index #61

wants to merge 1 commit into from

Conversation

Ivo-Evans
Copy link

@Ivo-Evans Ivo-Evans commented Feb 15, 2022

Relates #37 #40 #18

Tested on Svelte ^3.46.2 with a list of 1,533 items - it rendered OK, but if folks are troubled by the performance of iterating through the list beforehand, maybe there's some other solution. It could be an option that the user opts in to, for instance.

Use it like this

  <VirtualList items={statements} let:item let:absoluteIndex>
    <Statement {...item} index={absoluteIndex} />
  </VirtualList>

@Ivo-Evans Ivo-Evans closed this Feb 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant