-
-
Notifications
You must be signed in to change notification settings - Fork 815
Closed
Description
This library seems to throw errors when receiving unexpected inputs, which has the unfortunate side effect of absolutely crashing my app (happened in production even, because I was not aware of some error states). Would love some notes in the docs about when the components will throw errors so I can prepare for them. Or, would love fewer thrown errors: a silent fail on out-of-bounds scrollToRow would be just fine by me, don't need to crash for that.
Here's what I've found so far:
row/columnCount={0}will crash in render with"Invalid index 0"scrollToCell/Row/Indexwill crash if given out-of-bounds index (< 0, > count). (fwiw, JS itself doesn't crash when you access an array out of bounds, so I find this behavior quite unexpected.)
Metadata
Metadata
Assignees
Labels
No labels