Getting mutation error in Nuxt JS while binding form with state

I am trying to bind my form’s fields with my vuex store in Nuxt JS. It works fine with normal text fields with get() set() in computed. But having trouble in customizing getting and setting manually. …

Undefined when i am returning an Object in Javascript

I’m doing a getter in VueX, and when i’m returning an object for another function, i have “undefined”. getId: (state) => (LotofID, id) => { LotofID.points.map(obj => { …

Wait for axios API call in vuex to finish before continuing vue-router guard

I have a django-rest-axios-vuejs application stack for which I’m trying to do something in the vue-router. In the vue-router beforeEach guard, I’m verifying permissions and it is done by checking …

localstorage.getItem() not working in NUXT JS

I am trying to develop a shopping cart with nuxt js. I am successfully storing the cart data in local storage but I am unable to retrieve the data. N.B: i don’t wanna use vuex-persistedstate.

How do I combine two fetch requests to get the information I need?

I am writing a site with information about films. I need to get my hands on genres. But the problem is this. In the request, where all the main information is located, the genres are indicated by id. …

Vue: Using Vuex store in beforeRouteEnter hook to cancel navigation

I am trying to get vue-router to check a list of permissions, before finishing the navigation to a new route. The permissions are stored in vuex and ideally I’d want to avoid passing them as props …

Vuex 4, State is empty in component

I am trying to access subjects store state using this.$store.state.subjects inside my home component however it comes up as an empty array. Using console.log the only place I am able to see the state….

Vue.js – Get current route in Vuex module

I have a namespaced vuex store that returns an entry of the store based on the parameter of the current route. import Router from ‘../../router/index’ const options = { routeIdentifier: ‘stepId’ } …

Standard component interaction mechanisms vs Vuex – how to combine them?

The question is probably more theoretical. I have little experience with Vue and am trying to figure out where my knowledge gaps are and fill them. There are standard mechanisms for interaction …

How can i get boolean data from another component in vue js?

I have two Components. In the second component, “date-detail-filter” I always keep track for boolean value, and want to access this data in my parent component.