Skip to content

Commit

Permalink
Fixed the reader service working on uninitialized pinia.
Browse files Browse the repository at this point in the history
Refs #156
  • Loading branch information
The4thLaw committed Mar 15, 2024
1 parent 91f49e8 commit 37b8732
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions source/demyo-vue-frontend/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@ import router from './router'
import readerService from './services/reader-service'
import pinia from './stores'

// Do this as soon as possible. It's asynchronous and will work during bootstrap
readerService.init()

const app = createApp(App)

app.use(pinia)
// Do this as soon as possible but after pinia is set up. It's asynchronous and will work during bootstrap
readerService.init()

// Global mixin to allow components to scroll to the top of the page
app.mixin({
methods: {
Expand All @@ -24,7 +25,6 @@ app.mixin({

app.use(router)
app.use(i18n)
app.use(pinia)
app.use(portalVue)
app.use(vuetify)

Expand Down

0 comments on commit 37b8732

Please sign in to comment.