You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, if you're trying to do something specific, it would help if you describe what you're trying to achieve, to avoid falling into the XY problem (see xyproblem.info), what you tried and what happened (errors, or parts of the code that you don't know how to complete).
For the 2nd one, note that you can install a get*Component function in multiple components if it's needed in more than 1 place. It's still a singleton.
Activity
poletti-marco commentedon May 13, 2025
Hi, if you're trying to do something specific, it would help if you describe what you're trying to achieve, to avoid falling into the XY problem (see xyproblem.info), what you tried and what happened (errors, or parts of the code that you don't know how to complete).
For the first one, maybe you want to use annotated injection, as in https://github.com/google/fruit/wiki/tutorial:-annotated-injection ?
For the 2nd one, note that you can install a get*Component function in multiple components if it's needed in more than 1 place. It's still a singleton.