mirror of
https://github.com/docmost/docmost.git
synced 2026-05-09 07:43:06 +08:00
remove unused code
This commit is contained in:
@@ -99,24 +99,6 @@ export default function PageEditor({
|
||||
const localProvider = providersRef.current?.local;
|
||||
const remoteProvider = providersRef.current?.remote;
|
||||
|
||||
// Track when collaborative provider is ready and synced
|
||||
const [collabReady, setCollabReady] = useState(false);
|
||||
|
||||
useEffect(() => {
|
||||
if (
|
||||
remoteProvider?.configuration.websocketProvider.status ===
|
||||
WebSocketStatus.Connected &&
|
||||
isLocalSynced &&
|
||||
isRemoteSynced
|
||||
) {
|
||||
setCollabReady(true);
|
||||
}
|
||||
}, [
|
||||
remoteProvider?.configuration.websocketProvider.status,
|
||||
isLocalSynced,
|
||||
isRemoteSynced,
|
||||
]);
|
||||
|
||||
useEffect(() => {
|
||||
if (!providersRef.current) {
|
||||
const local = new IndexeddbPersistence(documentName, ydoc);
|
||||
|
||||
Reference in New Issue
Block a user