f / vue-wait

Complex Loader and Progress Management for Vue/Vuex and Nuxt Applications
MIT License
2k stars 101 forks source link

Introduce ability to declare action by name from vuex module in mapWaitingActions when two actions in different modules has the same name #50

Closed maciekkus closed 5 years ago

maciekkus commented 6 years ago

Hi, Would this be possible to add support for different name for "waitingActions". This could be useful especially when two actions has the same name in different modules. Something like in the example code below.

...mapWaitingActions('vuex_module_name', {
  someActionFromModule: { waiter: 'this is waiter for someAction', action: 'actionName' } 
}),

Kind regards, Maciek

maciekkus commented 6 years ago

another use case: using scenario described above I could dispatch the same action with different "waiters".

f commented 6 years ago

Wow this really makes sense.

maciekkus commented 6 years ago

@f here you can find PR: #55

f commented 5 years ago

55 closes