Skip to content

Commit

Permalink
No need for the store in the router
Browse files Browse the repository at this point in the history
  • Loading branch information
white-gecko committed Jan 23, 2025
1 parent 70a13bf commit 3ada655
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/router/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { createRouter, createWebHashHistory } from 'vue-router'
import { useRdfStore } from '../stores/rdf'

const router = createRouter({
history: createWebHashHistory(import.meta.env.BASE_URL),
Expand Down Expand Up @@ -59,11 +58,4 @@ const router = createRouter({
]
})

router.beforeEach((to) => {
// ✅ This will work because the router starts its navigation after
// the router is installed and pinia will be installed too
const store = useRdfStore()

})

export default router

0 comments on commit 3ada655

Please sign in to comment.