From: Eduardo San Martin Morote Date: Wed, 17 May 2023 08:19:55 +0000 (+0200) Subject: chore: remove playground code X-Git-Tag: @pinia/nuxt@0.4.11~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4c265731713f0d60a564ca16ba8be9aa0b9520c2;p=thirdparty%2Fvuejs%2Fpinia.git chore: remove playground code --- diff --git a/packages/playground/src/stores/counterSetup.ts b/packages/playground/src/stores/counterSetup.ts index 04cafdf5..4c5330da 100644 --- a/packages/playground/src/stores/counterSetup.ts +++ b/packages/playground/src/stores/counterSetup.ts @@ -1,6 +1,5 @@ -import { computed, toRefs, reactive, inject } from 'vue' +import { computed, toRefs, reactive } from 'vue' import { acceptHMRUpdate, defineStore } from 'pinia' -import { useRoute } from 'vue-router' const delay = (t: number) => new Promise((r) => setTimeout(r, t)) @@ -12,11 +11,6 @@ export const useCounter = defineStore('counter-setup', () => { numbers: [] as number[], }) - const route = useRoute() - console.log('route in setup', route) - - console.log('injection', inject('hello')) - const double = computed(() => state.n * 2) function increment(amount = 1) {