Skip to content

[repeat] how to set ref value type safely #1259

Discussion options

You must be logged in to vote

Just do

// Vue 3
this.state[item.p] = false
// Vue 2
Vue.set(this.state, item.p, false)

You don't need to create refs there

Replies: 1 comment

Comment options

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