Skip to content

Selection for node_map #52

@L3P3

Description

@L3P3

Add an optional argument to node_map which allows selecting an item.
On selection change, only the unselected and selected items are updated, optimizing selection from O(n) to O(1).

Example

node_map(ListItem, list, null, 10),
...
function ListItem({ I, selected }) {}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions