example store
getters: {
setName: (state) => (string: string) => {
state.user.username = string;
},
setUser: (state) => {
setName('Tom'); // setName is undefined.
}
}
Is there any way to access the setName inside an arrow function?
Example only show you can get this
inside normal functions
https://pinia.vuejs.org/core-concepts/getters.html#accessing-other-getters