]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
chore: cleanup playground
authorEduardo San Martin Morote <posva13@gmail.com>
Wed, 17 May 2023 08:15:41 +0000 (10:15 +0200)
committerEduardo San Martin Morote <posva@users.noreply.github.com>
Wed, 17 May 2023 08:26:48 +0000 (10:26 +0200)
packages/playground/src/main.ts

index 48f82f449f236ec052c31ae82b056df717ff1206..bae664bcac50bdc52ad6da269007b334016ee9a5 100644 (file)
@@ -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()