M
M
movsumlu2020-10-08 16:01:27
Vue.js
movsumlu, 2020-10-08 16:01:27

Get immutable data from vuex to render in component?

good afternoon!
such a question: I get one value from vuex.store, which is rendered in two different components,
but I need to make it so that when the lower number changes when it is increased / decreased using the controller,
and the upper one remains the same and does not re-render?
I get the value using the getter, and calculate the computed methods
5f7f0db7a6833813323472.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Yarkov, 2020-10-08
@movsumlu

<span v-once>{{ data }}</span>
When data changes, the initial value will be displayed .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question