Closed jaredmcateer closed 3 years ago
Will be available through q/app v3.0.0-beta.11
quasar.conf.js => store: 'src/Domain/App/Store.ts',
Error:Module not found: Can't resolve imported dependency "app/src/store/index"
import createStore from 'app/src/Domain/App/Store.ts'
const { storeKey } = await import('app/src/store/index');
Fixed, will be available in next release
Is your feature request related to a problem? Please describe. I want to be able to provide an InjectionKey when installing the vuex plugin so I can get better typescript support.
Describe the solution you'd like There needs to be a mechanism for providing a
Symbol
,as an option when installing the vuex store
and allows the user to also use this
Symbol
when retrieving the store in a vue component using compositional apiDescribe alternatives you've considered It's possible to override the type of
useStore
but that is error prone and cumbersomeAdditional context Here is the relevant documentation for using InjectionKey with Vuex4 https://next.vuex.vuejs.org/guide/typescript-support.html#typing-usestore-composition-function