Closed bhaskar-nair2 closed 4 years ago
@bhaskar-nair2 This can be looked at, at some point in the future. Currently however, the priority is creating a decent documentation site. If you you're willing I accept PRs in the meantime.
I understand.. Lemme see if I can do it..
@bhaskar-nair2 It seems you should ba able to access it like so:
this._vm.$vToastify.success("called from store");
OR
Vue.prototype.$vToastify.success("called from store");
Addressed in 1.8.0 You may now use it in vuex like:
import Vue from "vue";
const mutations = {
updateValue(state, value) {
state.value = value;
Vue.$vToastify("Successfully updated value!");
// OR
this._vm.$vToastify("Successfully updated value!")
}
};
Hey, I was looking for a way to generate messages from my Vuex store. I have tried
both fail as
vToastify
is undefined in both..Please note, I am using a dynamic store, which gets registered at runtime.
Thanks!