-
-
Notifications
You must be signed in to change notification settings - Fork 345
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
When there are only empty groups, both computeItemKey and itemContent are being called unexpectedly
Example:
groupCounts: [0]
calls:
computeItemKey, 0, 1
itemContent: 0
Reproduction
https://codesandbox.io/p/sandbox/grouped-virtuoso-compute-item-key-out-of-bounds-fwg59s
To Reproduce
Steps to reproduce the behavior:
- Open codesandbox
- See console
Expected behavior
Both computeItemKey and itemContent to not get called with a none-existent index
Screenshots
/
Desktop (please complete the following information):
- OS: Windows 11 Pro 23H2
- Browser: Edge 144.0.3719.92 (Official Build) (64-Bit)
Additional context
/
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working