From: Eduardo San Martin Morote Date: Wed, 17 May 2023 08:15:41 +0000 (+0200) Subject: chore: cleanup playground X-Git-Tag: @pinia/nuxt@0.4.11~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2fb88900c2ec529eb84a4e4f69465b881f80e3be;p=thirdparty%2Fvuejs%2Fpinia.git chore: cleanup playground --- diff --git a/packages/playground/src/main.ts b/packages/playground/src/main.ts index 48f82f44..bae664bc 100644 --- a/packages/playground/src/main.ts +++ b/packages/playground/src/main.ts @@ -1,4 +1,4 @@ -import { computed, createApp, inject, markRaw, Ref } from 'vue' +import { computed, createApp, markRaw, Ref } from 'vue' import App from './App.vue' import { createPinia } from 'pinia' import { router } from './router' @@ -6,7 +6,6 @@ import { RouteLocationNormalized, RouteLocationNormalizedLoaded, } from 'vue-router' -import { useCounter } from './stores/counterSetup' const pinia = createPinia() @@ -61,13 +60,6 @@ if (import.meta.hot) { // } } -const app = createApp(App).use(pinia).use(router).provide('hello', 'injections') +const app = createApp(App).use(pinia).use(router) app.mount('#app') - -console.log( - 'hello', - app.runWithContext(() => inject('hello')) -) - -const store = useCounter()