Skip to content

Instantly share code, notes, and snippets.

@emilhein
Created June 4, 2022 06:10
Show Gist options
  • Save emilhein/c32fdc854f42789773b17e93c4cfcaff to your computer and use it in GitHub Desktop.
Save emilhein/c32fdc854f42789773b17e93c4cfcaff to your computer and use it in GitHub Desktop.
export const useStore = defineStore('main', {
state: () => ({
counter: 0,
}),
actions: {
increment() {
this.counter++
}
},
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment