Colton Idle
07/20/2023, 3:36 PMStylianos Gakis
07/20/2023, 3:40 PMMarco Pierucci
07/20/2023, 3:40 PMTravis Griggs
07/20/2023, 3:41 PMColton Idle
07/20/2023, 3:41 PMColton Idle
07/20/2023, 3:42 PMOut of pure curiosity, if the spec is on process started, why on on the App's oncreate?Apps onCreate could work, but I'd like to do the work in a ViewModel because I already know how to inject all of my dependencies into that via hilt
Travis Griggs
07/20/2023, 3:42 PMMarco Pierucci
07/20/2023, 3:43 PMMarco Pierucci
07/20/2023, 3:44 PMColton Idle
07/20/2023, 4:03 PMDo you want this work to persist (and finish on its own) if your app closes immediately after opening?
Do you want this effect to still run if you deep link somewhere deeper and your start destination does not show at all when the app starts?
Do you care if it runs multiple times, aka each time you open your app instead of only once?
Do you care if it runs when you open the app on a cold boot vs a warm boot? (edited)all good questions @Stylianos Gakis but for right now just a general "we should get some data when the app is first opened" is loose enough where we can sort of define what makes sense for us at the moment. we will refactor later if there are more solid specs. but for now. everytime the app or activity is created would be fine. onResume of the activity would be too often.
Stylianos Gakis
07/20/2023, 4:05 PMColton Idle
07/20/2023, 4:13 PMMarco Pierucci
07/20/2023, 4:21 PMStylianos Gakis
07/20/2023, 4:24 PMa VM scoped to the navHostSure, if you make sure to scope it to the root route (aka global, just like if you injected it to your Activity) it would work, but feels like an overkill imo
Francesc
07/20/2023, 4:26 PMFrancesc
07/20/2023, 4:27 PMColton Idle
07/20/2023, 4:29 PMColton Idle
07/20/2023, 4:30 PMFrancesc
07/20/2023, 4:32 PMFrancesc
07/20/2023, 4:32 PMMarco Pierucci
07/20/2023, 4:37 PMColton Idle
07/20/2023, 4:45 PMFrancesc
07/20/2023, 4:54 PMFrancesc
07/20/2023, 4:57 PM