May I know the different between @Singleton VS static Provides in dagger2?
@Provides static User currentUser(AuthManager authMa
With @Singleton
annotation only one instance of User object will be created throughout the application lifecycle.
static
on @Provides
methods introduced recently to make the invocation of method faster by 15 to 20% as mentioned here. There will be multiple instances of User object if we call this method multiple times.