# Cancellation

Endpoints current pending situation can be easily canceled by calling .cancel() method

By default, on vue instance beforeDestroy hook, all pending endpoints will be canceled.

export default {

    chimera: {
       users: '/users',
       on: {
          cancel () {
              console.log('Canceled')
          }
       }
    },

    methods: {
       cancelUser () {
          this.users.cancel()
       }
    }
}
Last Updated: 3/20/2020, 12:15:01 PM