Are remote hooks executed sequentially?

489 Views Asked by At

Say I have multiple hooks defined for the same remote method on the same remote model:

MyModel.afterRemote('create', function (context, instance, next) {
    // Do A
})

MyModel.afterRemote('create', function (context, instance, next) {
    // Do B
})

MyModel.afterRemote('create', function (context, instance, next) {
    // Do C
})

Will loopback execute these sequentially in order of definition, e.g. will A finish before B and so forth?

0

There are 0 best solutions below