Dynamically Creates an Interface Of Objects to Easily Communicate with Vuex

Dynamically creates an interface of objects to easily communicate with vuex

Turning this:
this.$store.dispatch('module/action', { data });

this.$store.commit(Types.mutations.SET_FIRST_THING, 10);

this.$store.getters[TYPES.getters.getSomething]
Into this:
dispatches.module.action({ data });

commits.module.setFirstThing(10);

getters.module.getSomething();
No more constants, no more strings

Getting Started

Download Details:

Author: dannyYassine

Demo: https://dannyyassine.github.io/vuex-objectify/

Source Code: https://github.com/dannyYassine/vuex-objectify

#vue #vuejs #javascript

Dynamically Creates an Interface Of Objects to Easily Communicate with Vuex
4.05 GEEK