Repository navigation
fix: watch screen no longer freezes UI on stalled networks - #13
Merged
Merged
Conversation
Repro: search a rare term on a weak/saturated network, open the single result, watch page spins ~48s (15s fetch timeout × initial + 2 retries), back presses appear dead during the stall, and the app crashes a few seconds after finally navigating back. - Gate autoplay on screen focus (ref): the detail query can resolve long after the user backed out — the screen stays mounted in the stack — and play() then starts a player never attached to a view / plays audio under the previous screen. Autoplay now only runs while the screen has focus; re-focusing still stays paused as before. - retry: 0 on the video detail query: one 15s timeout then the error screen with a retry button, instead of ~48s of spinner. - Guard onEndReached in the browse and tag lists with hasNextPage && !isFetchingNextPage: single-row result lists fire it repeatedly, walking page after page on a struggling network.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Repro: search a rare term on a weak/saturated network, open the single result, watch page spins ~48s (15s fetch timeout × initial + 2 retries), back presses appear dead during the stall, and the app crashes a few seconds after finally navigating back.