File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
packages/main/src/components/AnalyticalTable Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1+ import { useIsomorphicLayoutEffect } from '@ui5/webcomponents-react-base/lib/hooks' ;
12import { StyleClassHelper } from '@ui5/webcomponents-react-base/lib/StyleClassHelper' ;
23import { createComponentStyles } from '@ui5/webcomponents-react-base/lib/createComponentStyles' ;
34import { usePassThroughHtmlProps } from '@ui5/webcomponents-react-base/lib/usePassThroughHtmlProps' ;
@@ -282,7 +283,7 @@ const AnalyticalTable: FC<TableProps> = forwardRef((props: TableProps, ref: Ref<
282283 if ( tableRef . current ) {
283284 dispatch ( { type : 'TABLE_RESIZE' , payload : { tableClientWidth : tableRef . current . clientWidth } } ) ;
284285 }
285- } , [ ] ) ;
286+ } , [ tableRef . current ] ) ;
286287
287288 useEffect ( ( ) => {
288289 // @ts -ignore
@@ -293,7 +294,7 @@ const AnalyticalTable: FC<TableProps> = forwardRef((props: TableProps, ref: Ref<
293294 } ;
294295 } , [ updateTableClientWidth ] ) ;
295296
296- useEffect ( ( ) => {
297+ useIsomorphicLayoutEffect ( ( ) => {
297298 updateTableClientWidth ( ) ;
298299 } , [ updateTableClientWidth ] ) ;
299300
You can’t perform that action at this time.
0 commit comments