H
H
hannyto11112021-06-07 21:17:23
Vue.js
hannyto1111, 2021-06-07 21:17:23

How to use Vue.set in Vue 3 cli?

Hello, please tell me how can I use vue.set in Vue 3 cli. r ghbvthe dj vue 2 i could

@click="$set(item, 'show_remove', item.show_remove)"

but in Vue 3 it doesn't work...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Aetae, 2021-06-07
@hannyto1111

In vue 3, Proxy is used for reactivity, set is not needed there, just assign and that's it.)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question