Skip to content

Commit be40ec2

Browse files
committed
fix: avoid duplicate mount clients
1 parent 560eeb0 commit be40ec2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/client/src/main.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ import '@unocss/reset/tailwind.css';
66
import 'uno.css';
77
createSvelteToolsClient();
88
const app = new App({
9-
target: document.getElementById('app')
9+
target: document.getElementById('app')!
1010
});
1111

12+
(
13+
window.parent as Window & { __SVELTE_DEVTOOLS_GLOBAL_HOOK__: any }
14+
).__SVELTE_DEVTOOLS_GLOBAL_HOOK__.emit('app:init');
1215
export default app;

0 commit comments

Comments
 (0)