I'm just curious if there's a way to mix namespaced and non-namespaced actions when you call, for example, ...mapActions
. I only have one module that is large enough to warrant full module encapsulation and thus namespacing, so some actions would be things/someAction
and some would just be someOtherAction
. I am currently mapping like so:
...mapActions('nsACtions', ['nsOne', 'nsTwo']),
...mapActions('nonNsActionOne', 'nonNsActionTwo')
but would much prefer to combine all into one mapActions
. Something like:
...mapActions('nsACtions',
['nsOne', 'nsTwo'],
'nonNsActionOne',
'nonNsActionTwo')
OR
...mapActions('nsACtions',
['nsOne', 'nsTwo'],
['nonNsActionOne',
'nonNsActionTwo'])
Neither of these examples work, so I'm curious if anyone has solved this little conundrum. Thanks!