@react-stately/data : Cannot read properties of undefined (reading 'index') at useListState.ts
Provide a general summary of the issue here
there's an issue on useListState.ts of @react-stately where im getting this error TypeError: Cannot read properties of undefined (reading 'index') at useListState.ts line:77
๐ค Expected Behavior?
no errors
๐ฏ Current Behavior
im getting this error TypeError: Cannot read properties of undefined (reading 'index') at useListState.ts
๐ Possible Solution
let index = Math.min(
(
diff > 1 ?
Math.max(startItem?.index - diff + 1, 0) :
startItem?.index
),
itemNodes.length - 1);
๐ฆ Context
No response
๐ฅ๏ธ Steps to Reproduce
let index = Math.min(
(
diff > 1 ?
Math.max(startItem?.index - diff + 1, 0) :
startItem?.index
),
itemNodes.length - 1);
Version
@react-stately/data v 3.11.0
What browsers are you seeing the problem on?
Chrome
If other, please specify.
No response
What operating system are you using?
windows
๐งข Your Company/Team
No response
๐ท Tracking Issue
No response
I'm also having this issue
same issue !
Does anyone have a reproduction that they can share? I'd like a test for this change if possible
Hi, we also having the same issue. https://github.com/Kong/insomnia/issues/7149. I found this error occurs from here through the error message and source code.
Same issue here!