Skip to content

Allow for key to be a function #29

@ArcticKeaton

Description

@ArcticKeaton

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions