@InstallIn({HiltComponentName}::class) vs @{HiltScope}

Kapil Sachan
Jan 27, 2023
Photo by Sara Bakhshi on Unsplash

Many of us use Hilt Dependency Injection in Android Projects and have a common misconception that all bindings declared in a module will be scoped to the component in which the module is installed in.

This isn’t true…Let’s understand this :)

Cheers! You have done this :)

Thank you for reading 😊.

Join my group with 75+ developers: https://t.me/+QkKKJTuNY89hOGRl

Subscribe to my YT channel: https://www.youtube.com/@codewithkapil

Stay safe and Keep Coding ✌.

If you have any doubt regarding the same, please put them in the comment section.

--

--