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
Invert mixin initialization order. #329
Comments
That makes sense! |
Totally agree ! |
💯 agree app should take precedence |
I'll create a PR with the changes. 💯 As a side effect, I'd prefer to drop Less is more remember? @zaceno :) |
I don't think that the current idea of "presets" (or "mixins in mixins") is especially important anyway. In fact it only complicates things when you're trying to do things like scoped mixins. Anyhow, presets, or bundling mixins, can still be done in an ok-nice way with array spreads. const MyMixinPreset = [MixinA, MixinB]
app({
mixins: [AMixin, ...MyMixinPreset, AnotherMixin],
...
}) EDIT: Code fences. |
- Shave off presets (mixin mixins) in the process. - Update tests & docs.
Currently we are initializing the app, then mixins. This makes it impossible for the app to overwrite a definition added by a mixin.
Your app should have the highest precedence and not mixins.
The text was updated successfully, but these errors were encountered: