HarryPulvirenti06/05/2020, 8:50 AM
implementation of the
. Basically, if you inject a
in the constructor of the
, this one will be instantiated again if you rotate the screen. This bug is reproducible only injecting the
via the fragment constructor but is not possible to reproduce it injecting the
via the lazy extension
Let me know if you are already aware of this bug or I can open an issue on Github.
tynn06/05/2020, 7:35 PM
to obtain your view model within your fragment factory, it’s the expected behavior.
to obtain the view model, you could use
arnaud.giuliani06/09/2020, 9:08 AM
HarryPulvirenti06/10/2020, 8:51 AM
in some way and then use it to inject the
arnaud.giuliani06/10/2020, 9:18 AM