Skip to content

Allow for key to be a function #29

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
ArcticKeaton opened this issue Mar 10, 2025 · 0 comments
Open

Allow for key to be a function #29

ArcticKeaton opened this issue Mar 10, 2025 · 0 comments

Comments

@ArcticKeaton
Copy link

key should be able to be a function, so more complex items can be handled accordingly.

e.g.

<VirtualScroll key={(item, index) => item.primaryId ?? item.secondaryId ?? index} {data} let:data>
    ...
</VirtualScroll>
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

No branches or pull requests

1 participant