Lukas Vyletel
Jan 24, 2021

--

I agree fully. In fact, using constructor injection and injecting something annotated with @FragmentScope would probably lead to memory leak (depending on the usage), if Fragment also injects instance of the same class somewhere. And it will not work as expected, because after configuration change Fragment will use different instance than what is used in the retained view model.

--

--

No responses yet