0👍
0👍
Since you are using Vuex just make the children do actions that change the state, and make the parent react to such changes by using getters. More info about the last thing here: https://vuex.vuejs.org/en/getters.html
0👍
Finally I just move the data from child to parent. Make the child pure and it works. Thanks for your help.
- [Vuejs]-Multiple <select> dropdowns on one line (Foundation css import)
- [Vuejs]-Vue.js – on click collapse the nearest div
0👍
Can u try it like this way:
parent component:
<child @childReady="do()"></child>
export default {
methods: {
do() {
}
}
}
child component:
mounted() {
this.$emit('childReady');
}
Source:stackexchange.com