Closed faststare08 closed 2 months ago
Hi @faststare08,
Are you able to give example of your store? The below code functions as expected
export const useCounterStore = defineStore('counter', {
state: () => ({ count: 0, name: 'Eduardo' }),
getters: {
doubleCount: (state) => {
const auth = useAuth()
console.log(auth.loggedIn)
return state.count * 2
}
},
actions: {
increment() {
this.count++
},
},
})
Closed assumed last answer resolved issue, if still a problem please comment
it cant detect/use the useAuth composable in pinia store.