Add ability to not inject lazily #5
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
Currently
@Inject
works lazily always. It means that object isn’t injected in fact until first call.It can lead to unexpected behavior. For example you have some broadcasting object which performs logic in
init()
method and inject it on a root level. Then you try to observe some changes but this object still isn’t created.The proposal is to add an option to propertyWrapper or registration methods to make this behavior configurable.
The text was updated successfully, but these errors were encountered: