Looking for a Next.js alternative and want to keep using React? Discover the best frameworks to consider and where they shine.
How does TanStack Form, a newer form library, compare to React Hook Form, and should you consider using it?
A deep dive into the Liskov Substitution Principle with examples, violations, and practical tips for writing scalable, bug-free object-oriented code.
This article walks through new CSS features like ::scroll-button()
and ::scroll-marker()
that make it possible to build fully functional CSS-only carousels.
6 Replies to "Best practices for Vuex mapping "
Good guide :)) Thank you so much, this is just the beginning of learning VUE of the rest, but this entry is useful.
I liked your explanation, thank. I observed one probable mistake, you wrote “import mapGetters ” into the explanation about mapState. That’s right?
your mutation mapping example is messed up man. names are mis matched.
thanks but usage of modules & nameSpaces is missing 😉
Really well structured explanation.
Pleas fix only one small thing which I’ve noticed in ‘mapGetters’ section :
…mapGetters({
first: ‘firstCount’,
another: ‘anotherGetter’,
})
Thanks for bringing that to our attention. It should be fixed now!