architecture-samples icon indicating copy to clipboard operation
architecture-samples copied to clipboard

Added viewLifecycleOwner to the observers inside Fragments

Open gastsail opened this issue 5 years ago • 1 comments

Added viewLifecycleOwner to the observers inside fragments to handle the viewmodel operations withing the lifecycle of the Fragment.

This prevents resuscribing to the observers, hence preventing them to be notified twice, also, the observers will be removed depending on the lifecycle of the Fragment that subscribes to it.

gastsail avatar Aug 06 '20 20:08 gastsail

Can we check on this @yigit ? Thanks

gastsail avatar Jan 28 '21 15:01 gastsail