File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
packages/ui/src/components/Section Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -57,13 +57,15 @@ function SectionItem({
5757 const [ selectedView , setSelectedView ] = useState ( defaultView ) ;
5858 const [ showDelayLoadingMessage , setShowDelayLoadingMessage ] = useState ( false ) ;
5959
60- useEffect ( ( ) => {
61- const delayLoaderTimer = setTimeout ( ( ) => setShowDelayLoadingMessage ( true ) , 5000 ) ;
60+ // TODO: refactor to avoid re-renders
6261
63- return ( ) => {
64- clearTimeout ( delayLoaderTimer ) ;
65- } ;
66- } , [ ] ) ;
62+ // useEffect(() => {
63+ // const delayLoaderTimer = setTimeout(() => setShowDelayLoadingMessage(true), 5000);
64+
65+ // return () => {
66+ // clearTimeout(delayLoaderTimer);
67+ // };
68+ // }, []);
6769
6870 if ( data && entity && data [ entity ] ) {
6971 hasData = definition . hasData ( data [ entity ] ) ;
You can’t perform that action at this time.
0 commit comments