You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 6, 2017. It is now read-only.
In this piece of code in lib/src/injector.dart do you mean An alternative could be to recurse only when parent is not a RootInjector instead of An alternative could be to recurse only when parent is not a ModuleInjector?
Binding binding = _bindings[id];
// When binding is null, recurse instead of iterate because it:// 1. tracks key history on the stack for error reporting// 2. allows different types of ancestor injectors with alternative implementations.// An alternative could be to recurse only when parent is not a ModuleInjectorif (binding ==null) return _instances[id] = parent.getByKey(key);
When parent is a RootInjector, getByKey immediately throws exception, but in ModuleInjector this method works fine.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
In this piece of code in
lib/src/injector.dart
do you meanAn alternative could be to recurse only when parent is not a RootInjector
instead ofAn alternative could be to recurse only when parent is not a ModuleInjector
?When
parent
is aRootInjector
,getByKey
immediately throws exception, but inModuleInjector
this method works fine.The text was updated successfully, but these errors were encountered: