You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently ported a list over to react-window and I noticed that under certain circumstances the itemSize callback can be called with an invalid index.
Hey,
I recently ported a list over to react-window and I noticed that under certain circumstances the itemSize callback can be called with an invalid index.
My code is basically
so itemCount is based on this.props.rows so that should always be synced up.
From what I've seen itemCount is
0
and since (https://github.com/bvaughn/react-window/blob/master/src/VariableSizeList.js#L42)the
i <= index
allows this to be out of boundsThe text was updated successfully, but these errors were encountered: