[Vuejs]-How to apply a filter computed property to a computed property inside Vuex's mapState?

0๐Ÿ‘

โœ…

I got it. This is solved with the spread operator:

computed: {
   ...mapState([
      'shipments'
   ]),
   filteredShipments() { 
       // logic
   }
}

Leave a comment