The Vue.js 2 Master Class
Plans from $25/month

This lesson is for members. Join us?

Subscribe now and get immediate access to this course, 30 more and all future Vue.js courses!

🚧 NOTICE: You are watching a Vue.js 2 lesson

Creating Dynamic Vuex Getters using Higher Order Functions

In this episode, we'll use a higher order function to manipulate the behavior of an ordinary Vuex getter, so our getters accepts arguments. This is a very powerful and cool trick that also reduces the amount of code we have to write since our vue components get prop-lighter.