Skip to content

Commit

Permalink
Add tag name to initDependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
djade007 committed Aug 8, 2020
1 parent b312ca0 commit d208a61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/instance/get_instance.dart
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ class GetInstance {
throw "class ${S.toString()} with tag '$tag' is not register";
}
}
initDependencies<S>();
initDependencies<S>(name: tag);

return GetConfig._singl[key].getSependency() as S;
} else {
Expand All @@ -175,7 +175,7 @@ class GetInstance {
print('[GETX] $S instance was created at that time');
S _value = put<S>(GetConfig._factory[key].builder() as S);

initDependencies<S>();
initDependencies<S>(name: tag);

if (GetConfig.smartManagement != SmartManagement.keepFactory &&
!GetConfig._factory[key].fenix) {
Expand Down

0 comments on commit d208a61

Please sign in to comment.