You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One mutation might be commited by serveral actions, sometimes, I need the action's type which commited the mutation when writing a vuex plugin. For example:
A plugin that can maintain an state to monitor the asynchronous state of each action.
Without the provided action's type, the only way I can think of is that each action corresponds to a unique mutaion.
By the way, I know the subscribeAction method, but it can't help, because I need both mutation's type and action's type.
thx!
What does the proposed API look like?
store.subscribe((mutation, state, type) => {
// mutation's type is 'mutation.type'
// action's type is 'type'
// I need these two types both.
})
The text was updated successfully, but these errors were encountered:
What problem does this feature solve?
One mutation might be commited by serveral actions, sometimes, I need the action's type which commited the mutation when writing a vuex plugin. For example:
A plugin that can maintain an state to monitor the asynchronous state of each action.
Without the provided action's type, the only way I can think of is that each action corresponds to a unique mutaion.
By the way, I know the subscribeAction method, but it can't help, because I need both mutation's type and action's type.
thx!
What does the proposed API look like?
The text was updated successfully, but these errors were encountered: