Browse Source

fix: local schema recovers failed

master
smallstonesk 4 years ago
parent
commit
2952811505
  1. 10
      packages/core/src/mods/header/connectStatus/index.tsx

10
packages/core/src/mods/header/connectStatus/index.tsx

@ -30,10 +30,12 @@ const ConnectStatus: React.FC<IProps> = (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 = () => {

Loading…
Cancel
Save