A
A
Artur Galyaev2020-12-06 09:18:15
Vue.js
Artur Galyaev, 2020-12-06 09:18:15

How to pass dynamic vuex state to props?

I have an array in the state with the data that I display

<Datepicker v-for="(item, i) in form.date" :key="i" :date="item" @select="selectDate($event, i)" />

Everything works, but if you change these data, then the props will come the same, how to solve?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artur Galyaev, 2020-12-06
@art5455

You need to change properties immutably

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question