L
L
lavezzi12017-10-17 15:55:44
JavaScript
lavezzi1, 2017-10-17 15:55:44

How to save data from vuex to instance's data?

Hello!
Such situation. When visiting a certain page, I pull the data by id in Vuex and save it in state.item: {}. Further, on another tab, I need to display the data of this item in the form.
So here's the question. How to save correctly this.$store.getters.item- here is this data in data on the page to use already in the form (v-model).
PS do not offer to update the input data immediately in Vuex :)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Moe Green, 2017-10-26
@mQm

maybe you can find something similar here?
https://medium.com/devschacht/%D0%BF%D1%8F%D1%82%D...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question