From 264459ff1af98ee4843cdc47082ec4160ea01f31 Mon Sep 17 00:00:00 2001 From: davwas Date: Fri, 10 Nov 2023 14:29:51 +0100 Subject: [PATCH] revert deletion of setAppInstance method --- src/hooks/useMultiplayerState.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hooks/useMultiplayerState.ts b/src/hooks/useMultiplayerState.ts index 177f37e7..f38c5276 100644 --- a/src/hooks/useMultiplayerState.ts +++ b/src/hooks/useMultiplayerState.ts @@ -25,9 +25,11 @@ export function useMultiplayerState(roomId: string) { (app: TldrawApp) => { app.loadRoom(roomId); app.pause(); + setAppInstance(app); }, [roomId], ); + const onChangePage = useCallback( ( app: TldrawApp,