Conditional injection #85
Closed
KurbanismailovZaur
started this conversation in
Ideas
Replies: 1 comment
-
This goes against Reflex core values, having a minimal dependency injection framework. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
It would be great to be able to set conditions for when bindings are triggered. For example, to specify that the binding should only work when embedded in the Enemy type, you can use the following code:
Bindings that have a When condition in the case where When returns true have a higher priority over other matching bindings.
Beta Was this translation helpful? Give feedback.
All reactions