Skip to content
This repository has been archived by the owner on May 22, 2023. It is now read-only.

Using the injection mixin multiple times for a widget doesn't work #8

Open
alex3683 opened this issue Aug 28, 2017 · 1 comment
Open

Comments

@alex3683
Copy link
Member

alex3683 commented Aug 28, 2017

This can happen if e.g. one mixin of the widget uses the injection mixin and the widget itself (or another mixin of the widget) uses the injection mixin. In this case the last applied mixins array wins.

The cause is obviously this line, where injections are overwritten by every new loaded injection mixin.

In the current version there is no simple solution, since every participating mixin / controller defines the $injections array like it needs it by means of the injections() mixin.

EDIT: Perhaps #7 could fix this?

@x1B
Copy link
Member

x1B commented Sep 7, 2017

Is there any way to achieve something better using the current API? Otherwise, I would say that this is no bug, just a bad API (which we can hopefully improve using something like #7).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants