diff --git a/packages/core/src/mods/header/connectStatus/index.tsx b/packages/core/src/mods/header/connectStatus/index.tsx index d57b28f..36f2cdc 100644 --- a/packages/core/src/mods/header/connectStatus/index.tsx +++ b/packages/core/src/mods/header/connectStatus/index.tsx @@ -30,10 +30,12 @@ const ConnectStatus: React.FC = (props) => { // life useEffect(() => { - confirmToSync(); - const timer = setInterval(syncLocal, PULSE_RATE); - return () => clearInterval(timer); - }, []); + if(flowChart) { + confirmToSync(); + const timer = setInterval(syncLocal, PULSE_RATE); + return () => clearInterval(timer); + } + }, [flowChart]); // network const syncLocal = () => {