refactor: change singleton registrations to lazySingleton for improved performance
This commit is contained in:
@@ -33,7 +33,7 @@ class StaffHomeModule extends Module {
|
||||
);
|
||||
|
||||
// Presentation layer - Cubits
|
||||
i.addSingleton(
|
||||
i.addLazySingleton(
|
||||
() => HomeCubit(
|
||||
repository: i.get<HomeRepository>(),
|
||||
getProfileCompletion: i.get<GetProfileCompletionUseCase>(),
|
||||
|
||||
Reference in New Issue
Block a user