-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mixins execute backwards #57
Comments
You're right! We do a
But I think we pretty much can't change it now since that would probably break many things, so would you mind submitting a PR to the docs that reminds people of this? |
Oh I see. If you think about how it actually works - that mixins just wrap run() it makes sense. You could argue that just forEach-iterating is the right way aswell since mixins likewise could be dependent on properties added to the methodOptions in a earlier mixin. So never mind this then. I'll submit a docs PR this week 👍 |
@jonathanazulay I realize this is quite old but, did this doc update PR ever occur somewhere? |
In my application I do something like this
mixins: [LoggedInMixin, UserIsBlaBla]
The second mixin in the array depends on something in Meteor.user() so we need to make sure the user is logged in first. But, unexpectedly, mixins will run in reverse order so I have to reverse the array:
mixins: [UserIsBlaBla, LoggedInMixin]
The text was updated successfully, but these errors were encountered: