From 2c652591ea274261dcf4e8fb18104c1875de2982 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernando=20Fern=C3=A1ndez?= Date: Sat, 17 Aug 2024 20:16:49 +0200 Subject: [PATCH] feat: ensure all resources are loaded before mount (#2430) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fernando Fernández --- frontend/src/main.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/main.ts b/frontend/src/main.ts index de1438938b2..9e9a01cea74 100644 --- a/frontend/src/main.ts +++ b/frontend/src/main.ts @@ -3,8 +3,9 @@ * for TypeScript compiler (check tsconfig.json) * https://caniuse.com/mdn-javascript_operators_await_top_level */ -import { createApp } from 'vue'; +import { createApp, effectScope } from 'vue'; import { routes } from 'vue-router/auto-routes'; +import { useEventListener } from '@vueuse/core'; import Root from '@/App.vue'; import { hideDirective } from '@/plugins/directives'; import { vuePlugin as i18n } from '@/plugins/i18n';