Join Slack
Powered by
hi, will Hilt generate a singleton per type I inst...
# dagger
a
abbic
09/26/2023, 10:33 AM
hi, will Hilt generate a singleton per type I instantiate at runtime in the following code?
Copy code
@Singleton class EventBus<T> @Inject constructor() {
t
trevjones
09/27/2023, 3:58 PM
I would assume yes because the injection site is going to have type for T that would be considered when it builds the graph.
3
Views
Open in Slack
Previous
Next