File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
src/visualization/types/SimpleTable Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -239,13 +239,14 @@ const PagedTable: FC<Props> = ({result, properties}) => {
239239 }
240240
241241 let timeout
242+ let animationFrameID
242243 const resizer = new ResizeObserver ( entries => {
243244 if ( timeout ) {
244245 clearTimeout ( timeout )
245246 }
246247
247248 timeout = setTimeout ( ( ) => {
248- requestAnimationFrame ( ( ) => {
249+ animationFrameID = requestAnimationFrame ( ( ) => {
249250 setHeight ( entries [ 0 ] . contentRect . height )
250251 } )
251252 } , 200 )
@@ -263,6 +264,7 @@ const PagedTable: FC<Props> = ({result, properties}) => {
263264
264265 return ( ) => {
265266 resizer . disconnect ( )
267+ cancelAnimationFrame ( animationFrameID )
266268 if ( timeout ) {
267269 clearTimeout ( timeout )
268270 }
You can’t perform that action at this time.
0 commit comments