Skip to content

Commit

Permalink
chore(docs): Update getItemKey description (#594)
Browse files Browse the repository at this point in the history
  • Loading branch information
obinmatt committed Sep 26, 2023
1 parent 4915844 commit 106a0be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api/virtualizer.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ The initial offset to apply to the virtualizer. This is usually only useful if y
getItemKey?: (index: number) => Key
```

This function is passed the index of each item and should return a unique key for that item. The default functionality of this function is to return the index of the item, but you should override this when possible to return a unique identifier for each item across the entire set.
This function is passed the index of each item and should return a unique key for that item. The default functionality of this function is to return the index of the item, but you should override this when possible to return a unique identifier for each item across the entire set. This function should be memoized to prevent unnecessary re-renders.

### `rangeExtractor`

Expand Down

0 comments on commit 106a0be

Please sign in to comment.