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 // life
useEffect(() => { useEffect(() => {
confirmToSync(); if(flowChart) {
const timer = setInterval(syncLocal, PULSE_RATE); confirmToSync();
return () => clearInterval(timer); const timer = setInterval(syncLocal, PULSE_RATE);
}, []); return () => clearInterval(timer);
}
}, [flowChart]);
// network // network
const syncLocal = () => { const syncLocal = () => {

Loading…
Cancel
Save