Skip to content

Commit 15781ae

Browse files
Merge pull request boostcampwm-2024#417 from boostcampwm-2024/bug-fe-#416
초기 사이트 접속 시 에디터 소켓 접속하는 문제 해결
2 parents cffe362 + 326819b commit 15781ae

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

apps/frontend/src/features/editor/model/useEditorConnection.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ export const useEdtorConnection = (currentPage: number | null) => {
1111
editor.provider.destroy();
1212
}
1313

14+
if (currentPage === null) return;
15+
1416
setConnectionStatus("editor", "connecting");
1517

1618
const provider = createSocketIOProvider(

0 commit comments

Comments
 (0)