mirror of
https://github.com/docmost/docmost.git
synced 2025-11-10 09:22:05 +10:00
fix: make collab ready reliable on tab return
This commit is contained in:
@ -273,6 +273,8 @@ export default function PageEditor({
|
|||||||
collabRetryCount.current > 2 ? 3000 : 0,
|
collabRetryCount.current > 2 ? 3000 : 0,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
setIsCollabReady(true);
|
||||||
|
|
||||||
return () => clearTimeout(reconnectTimeout);
|
return () => clearTimeout(reconnectTimeout);
|
||||||
}
|
}
|
||||||
}, [isIdle, documentState, remoteProvider?.status]);
|
}, [isIdle, documentState, remoteProvider?.status]);
|
||||||
|
|||||||
Reference in New Issue
Block a user