Vuex in Nuxt: Breaking down the Store into Modules

Updating Vuex Store Methods

dispatch("getServices")
dispatch("services/getServices")

Vuex Map Helpers

this.$store.dispatch("deleteService", payload)
dispatch("loading/startLoading", null, { root: true })

--

--

--

Hi, my name is Alex. I’m a front-end engineer, passionate for the web, responsive design, & typography.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

React Routes: The wonders of Match, History, and Location.

JS Vanilla Test Code Coverage

Node is Dead, thanks to Deno.

Adding Bootstrap 5 to an Angular 13 project

How to install Angular on Mac

Sorting Elements in React

How to console.log variable under the cursor in Visual Studio Code

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Alex Kasongo

Alex Kasongo

Hi, my name is Alex. I’m a front-end engineer, passionate for the web, responsive design, & typography.

More from Medium

Remix — Not just another javascript framework

Generate TypeScript Declaration Files for JavaScript Files

The JavaScript logo with an arrow pointing towards the TypeScript logo

How To Use Environment Variables in Vite

Using WebRTC and Svelte