Answer the question
In order to leave comments, you need to log in
How to make it so that the function is called after the successful operation of this.$eh.$emit?
this.$eh.$emit('remove-from-cart', this.cartItemId)
payload.callback
fire after this.$eh.$emit completes. this.$eh.$emit('remove-from-cart', this.cartItemId, payload.callback )
this.$eh.$emit('remove-from-cart', {this.cartItemId, done: () => payload.callback} )
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question