Answer the question
In order to leave comments, you need to log in
Vue. How to copy an array and disable reactivity?
there is a reactive array, how to make a local copy for manipulations that will not affect the original data?
items = [...] // реактивный массив
localItems = items
localItems.push(data) // данные добавляются в items, надо это предотвратить
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question