A
A
Alexey2018-12-08 15:39:26
Vue.js
Alexey, 2018-12-08 15:39:26

The component does not see the computed property. What could be the problem?

Greetings.
The component does not see the computed property:
The code of the
searchText2 component displays the current value correctly. I set value through mutation.
searchText = empty. When trying to set a value:

Computed property "searchText" was assigned to but it has no setter.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Kirill Romanov, 2018-12-08
@AlexeyCaTHaR

searchText must be declared outside of mapState

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question