Skip to content

No examples with arrays in the docs? #934

Discussion options

You must be logged in to vote

You just use an array like any other variable in JS:

defineStore('id', {
  state: () => ({ list: [] })
})

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@0106WeiWeiDeng
Comment options

@posva
Comment options

Answer selected by rodrigocfd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants