Skip to content

Commit c8b60f8

Browse files
committed
fix: playground: destroy instead of detach
1 parent b2332f2 commit c8b60f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

playground/frontend/app/articles/[slug]/ArticleEditor.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ export default function ArticleEditor({ slug }: { slug: string }) {
5050
setProvider2(_p2);
5151

5252
return () => {
53-
_p1.detach();
54-
_p2.detach();
53+
_p1.destroy();
54+
_p2.destroy();
5555
};
5656
}, [socket1, socket2, slug]);
5757

0 commit comments

Comments
 (0)