-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Closed
Labels
Qv2 🔝Quasar v2 issuesQuasar v2 issuesarea/clibug/1-repro-availableA reproduction is available and needs to be confirmed.A reproduction is available and needs to be confirmed.flavour/quasar-cli-vitekind/bug 🐞
Description
What happened?
app.use(store, storeKey) called after boot files initiated in client-entry.js
When plugins used with Pinia, they are initiated after app.use(store, storeKey) called.
The store parameter passed into the boot files can be used to initiate store modules but they don't provide plugins at this stage.
In this particular problem, the plugin is pinia-plugin-persistedstate-2
What did you expect to happen?
Plugins are available once store parameter passed to boot files once they are invoked.
Reproduction URL
https://codesandbox.io/s/goofy-galois-f4yhof
How to reproduce?
- Go to codesandbox link,
- Check
store/index.js, - Check
boot/exampleBoot.js, - Comment out to line 7 to disable
app.use(store)call, exampleModuleStore.$persistedStatewill throw undefined message to console.
Flavour
Quasar CLI with Vite (@quasar/cli | @quasar/app-vite)
Areas
Quasar CLI Commands/Configuration (@quasar/cli | @quasar/app-webpack | @quasar/app-vite)
Platforms/Browsers
Chrome
Quasar info output
No response
Relevant log output
No response
Additional context
No response
Metadata
Metadata
Assignees
Labels
Qv2 🔝Quasar v2 issuesQuasar v2 issuesarea/clibug/1-repro-availableA reproduction is available and needs to be confirmed.A reproduction is available and needs to be confirmed.flavour/quasar-cli-vitekind/bug 🐞