Juan Mendez
Jul 24, 2017 · 1 min read

Great article. I haven’t used Ribot, I am retaining the state of my fragment and what I do is onStart() update the dependencies with the most current activity context. once it is onPause() I also set the dependencies with onStart/onPause to unsubscribe dependencies or close any type of connection. I am not using Dagger with submodules, and things seem to be working fine. I already tested jumping to another activity and coming back and fragments keep doing their work as expected. I will have to play more with it but so far no complaints. This is a library I created to handle when fragments activate and deactivate https://github.com/juanmendez/shoe-boxes

    Juan Mendez

    Written by