unuse code

This commit is contained in:
xiaodong zuo 2022-09-05 15:06:06 +08:00
parent 3a9aa99ee9
commit 97007f3bb5
2 changed files with 2 additions and 3 deletions

View File

@ -8,7 +8,7 @@ import Labels from './labels';
import Pages from './pages';
export function WorkspaceContainer() {
const { workspace_id, page_id } = useParams();
const { workspace_id } = useParams();
const { user, currentSpaceId } = useUserAndSpaces();
if (

View File

@ -3,7 +3,6 @@ import * as encoding from 'lib0/encoding';
import * as awarenessProtocol from 'y-protocols/awareness';
import * as syncProtocol from 'y-protocols/sync';
import * as Y from 'yjs';
import { Message } from './handler';
import { readMessage } from './processor';
import { WebsocketProvider } from './provider';
@ -14,7 +13,7 @@ export const registerBroadcastSubscriber = (
document: Y.Doc
) => {
const channel = provider.broadcastChannel;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const subscriber = (data: ArrayBuffer, origin: any) => {
if (origin !== provider) {
const encoder = readMessage(provider, new Uint8Array(data), false);