You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
馃摎 Is your documentation request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I feel I should be able to [...] but I can't see how to do it from the docs.
i find out a little issue with vuex store.
"userStore" interface is so diferent with vuex interface "userStore" which is
/// from vuexuseStore<S=any>(injectKey?: InjectionKey<Store<S>>|string): Store<S>;/// from composition-apiuseStore<S=any>(injectKey?: InjectionKey<S>|string): Store<S>;
So there will caught you have to import like
exportconstkey: InjectionKey<State>=Symbol()//instead of import{Store}from'vuex'exportconstkey: InjectionKey<Store<State>>=Symbol()
what ever it a feature or a bug , you might need to update new document for this 馃攳 Where should you find it?
What page of the docs do you expect this information to be found on?
//https://composition-api.nuxtjs.org/packages/store/import{defineComponent,useStore}from'@nuxtjs/composition-api'exportinterfaceState{count: number}exportconstkey: InjectionKey<Store<State>>=Symbol()exportdefaultdefineComponent({setup(){conststore=useStore(key)conststore=useStore<State>()// In both of these cases, store.state.count will be typed as a number},})
鈩癸笍 Additional context
Add any other context or information.
The text was updated successfully, but these errors were encountered:
馃摎 Is your documentation request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I feel I should be able to [...] but I can't see how to do it from the docs.
i find out a little issue with vuex store.
"userStore" interface is so diferent with vuex interface "userStore" which is
So there will caught you have to import like
what ever it a feature or a bug , you might need to update new document for this
馃攳 Where should you find it?
What page of the docs do you expect this information to be found on?
鈩癸笍 Additional context
Add any other context or information.
The text was updated successfully, but these errors were encountered: