# Async mixins and beforeModel

**URL:** https://discuss.emberjs.com/t/async-mixins-and-beforemodel/15887
**Category:** Routing
**Created:** [December 5, 2018, 4:42pm UTC](https://discuss.emberjs.com/t/async-mixins-and-beforemodel/15887 "2018-12-05T16:42:43Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![CezaryH](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/cezaryh/32/13527_2.png) [@CezaryH](https://discuss.emberjs.com/u/CezaryH)
#### Post date: [December 5, 2018, 4:42pm UTC](https://discuss.emberjs.com/t/async-mixins-and-beforemodel/15887/1 "2018-12-05T16:42:43Z")

</div>

Hey, I’d like to ask about approach to issue with multiple mixins implementing async beforeModel. Let me show example

> **[Ember Twiddle](https://ember-twiddle.com/#/6aa784f1c7a3872e6a20787382c6611a?openFiles=routes.application.js%2C)**
>
> A web-based Ember.js code sharing tool that follows ember-cli's conventions.

As you can see model in route wait only for mixin2 resolution. Is there any existing approach to that issue ?

I already have some idea hot to solve it, but was curies if anyone had similar issue.

Thanks,

---

<div class="post-metadata">

### Author: ![efx](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/efx/32/17920_2.png) [@efx](https://discuss.emberjs.com/u/efx)
#### Post date: [December 10, 2018, 5:02pm UTC](https://discuss.emberjs.com/t/async-mixins-and-beforemodel/15887/2 "2018-12-10T17:02:37Z")

</div>

@CezaryH If you need to chain the behavior of the `beforeModel` mixins, I think you need to `return this._super(...arguments)`. Since each returns a promise, this will ensure they block until the next one resolves. I tried tweaking your twiddle to that for reference [here](https://ember-twiddle.com/889b626262086aa4644f1c60d7254f4a?openFiles=routes.application.js).
