From edc486c5258d8c6fa8021945d74bd023948915ff Mon Sep 17 00:00:00 2001 From: Dannon Baker Date: Mon, 23 Oct 2023 23:26:10 -0400 Subject: [PATCH] Swap over analysis entrypoint to createApp for vue3 --- client/src/entry/analysis/index.ts | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/client/src/entry/analysis/index.ts b/client/src/entry/analysis/index.ts index f37d739c29ae..3094082daac4 100644 --- a/client/src/entry/analysis/index.ts +++ b/client/src/entry/analysis/index.ts @@ -1,5 +1,5 @@ -import { createPinia, PiniaVuePlugin } from "pinia"; -import Vue, { provide } from "vue"; +import { createPinia } from "pinia"; +import { createApp } from "vue"; import { addInitialization, standardInit } from "@/onload"; import store from "@/store"; @@ -8,7 +8,6 @@ import { getRouter } from "./router"; import App from "./App.vue"; -Vue.use(PiniaVuePlugin); const pinia = createPinia(); addInitialization((Galaxy: any) => { @@ -18,16 +17,13 @@ addInitialization((Galaxy: any) => { // external use (e.g. gtn webhook) -- longer term we discussed plans to // parameterize webhooks and initialize them explicitly with state. Galaxy.router = router; - new Vue({ - el: "#app", - setup() { - provide("store", store); - }, - render: (h) => h(App), - router: router, - store: store, - pinia: pinia, + const app = createApp({ + router, + store, }); + app.provide("store", store); + app.use(pinia); + app.mount("#app"); }); window.addEventListener("load", () => standardInit("app"));