Category "store"

Why doesn't fetch work in store's nuxtServerInit?

For my project I'm using Nuxt. In the store's action I have this piece of code: async nuxtServerInit({ commit }) { this.dispatch('fetchAllClients') }, async f

TypeError: Cannot destructure property 'product' of 'productDetails' as it is undefined

**ProductDetailsScreen.js >>> Here is my code, I got the product list from Redux store, But facing a problem when initializing product details. ** e

How to load a rest store with ID in Sencha Touch 2.4.2?

Here within a controller I create a rest store: this.somePerson = Ext.create('Ilhan.store.Human', { model: 'Ilhan.model.Human', autoLoad: false }); this

Nuxt.js vuex store not persisted

I've got some strange issues with my Nuxt.js Setup. Some States in Store arent persistent, everytime I load another view, they went back to the default value. p

Laravel Excel::store file empty after stored

I uploaded this excel file: myExceldocument.xlsx After uploading I want to store in a folder. I used this method: $uploadedFile = $request->file('files')[0]-

Vuex modules with typescript

EDIT: Since vue conference Toronto (late 2021), Vue has officially switched over to Pinia for typescript support, instead of Vuex. They also acknowledge that Vu