[Vuejs]-Life cycle Hook in vueJs

0👍

TypeError means your are accessing a property of an object that is null.

May be your getters.user.data is null and you are trying to access id on null.

Please print your getters.user.data in browser console.

0👍

it is just like you are not able to get values in your getters, try to mutate the user object in vuex properly and then set the object in getters, may be you are not getting proper response or if getting then may be could not be able to get in this component .

Leave a comment