Skip to content

Quasar 2 (Beta 17), Vuex 4, typescript. Getters not showing in store. #9365

Discussion options

You must be logged in to vote

OK. worked out the syntax:

const valFromGetter = computed(()=>{
      // eslint-disable-next-line @typescript-eslint/no-unsafe-return
      return mystore.getters['example/getMyValue']
    })

but it has to be linter-protected as it is not type-safe. and as a result there is no intellisense on it :(

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rstoenescu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant