Lead Product Evangelist @Kentico, Founding partner @craftbrewingbiz. love to learn / teach web dev & software engineering, collecting vinyl records, mowing my lawn, craft 🍺
Awesome - I use createNamespacedHelpers but I guess I never realized that worked the same way as using mapActions directly with a namespace as the first parameter!
I like having strong types for my actions/mutations without having to import something, so I create an action function that uses JS Doc type unions
Awesome - I use
createNamespacedHelpers
but I guess I never realized that worked the same way as usingmapActions
directly with a namespace as the first parameter!I like having strong types for my actions/mutations without having to import something, so I create an
action
function that uses JS Doc type unionsIn my SFCs I can use it like this:
The value I can pass to
dataAction
is strongly typed to be only one of the keys ofactionTypes
.