Skip to content

Commit

Permalink
bug: 초기 사이트 접속 시 에디터 소켓 접속하는 문제 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
yewonJin committed Dec 21, 2024
1 parent cffe362 commit 326819b
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ export const useEdtorConnection = (currentPage: number | null) => {
editor.provider.destroy();
}

if (currentPage === null) return;

setConnectionStatus("editor", "connecting");

const provider = createSocketIOProvider(
Expand Down

0 comments on commit 326819b

Please sign in to comment.