]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
chore: remove old composables
authorEduardo San Martin Morote <posva13@gmail.com>
Wed, 17 May 2023 08:18:04 +0000 (10:18 +0200)
committerEduardo San Martin Morote <posva@users.noreply.github.com>
Wed, 17 May 2023 08:26:48 +0000 (10:26 +0200)
packages/playground/src/composables/router.ts [deleted file]

diff --git a/packages/playground/src/composables/router.ts b/packages/playground/src/composables/router.ts
deleted file mode 100644 (file)
index a6a74d7..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-import { getActivePinia } from 'pinia'
-
-export function useRouter() {
-  return getActivePinia()?._a.config.globalProperties.$router!
-}
-
-export function useRoute() {
-  return getActivePinia()?._a.config.globalProperties.$route!
-}