gustavopsantos / Reflex

Minimal dependency injection framework for Unity
MIT License
730 stars 51 forks source link

Option to install null or is it bad practice? #74

Open TheXRMonk opened 3 days ago

TheXRMonk commented 3 days ago

Is your feature request related to a problem? Please describe. If we have "optional" dependencies, we can't just install "null". We will get errors.

Describe the solution you'd like Maybe if we just explicitly install null; image then we could handle errors where the injection is null instead? or is it bad practice?

Describe alternatives you've considered Refactor dependencies so the "optional" service is depending on the caller instead. Or implement a "dummy service".

Additional context N/A