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
Copy file name to clipboardExpand all lines: src/providers/ScrollModeVirtualProvider.tsx
-2Lines changed: 0 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -39,8 +39,6 @@ export function ScrollModeVirtualProvider({ children, canvasHeight, headerHeight
39
39
thrownewError(`Invalid virtualCanvasHeight: ${virtualCanvasHeight} when clientHeight is ${clientHeight}. virtualCanvasHeight should be greater than clientHeight for virtual scrolling.`)
40
40
}
41
41
42
-
// TODO(SL): onViewportChange should be stable. Or use setClientHeight and setScrollTop directly? Still interleaved states...
43
-
// Currently, it breaks with "Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops"
0 commit comments