Skip to content

Fix ride page stuck on swipeable loading cards - #16

Closed
rijuyuezhu wants to merge 1 commit into
VariantConst:mainfrom
rijuyuezhu:fix/ride-page-loading-race
Closed

Fix ride page stuck on swipeable loading cards#16
rijuyuezhu wants to merge 1 commit into
VariantConst:mainfrom
rijuyuezhu:fix/ride-page-loading-race

Conversation

@rijuyuezhu

Copy link
Copy Markdown

Summary

  • replace the shared initialization-cancellation boolean with a generation token so stale async work cannot overwrite a newer RidePage initialization
  • keep ride-history preference sorting on the startup path cache-only, then refresh history through the shared RideHistoryProvider after the ride cards are usable
  • guard async card/QR/auto-reservation writes against stale generations
  • add a widget regression that stalls the first initialization, retries, then releases the stale request and verifies no 加载中... cards remain

Validation

  • flutter test — 17 passed
  • flutter analyze --no-fatal-infos — only 2 pre-existing surfaceVariant deprecation infos
  • git diff --check
  • secret scan — no findings

Reproduced on v3.1.7 as two swipeable RidePage cards both showing 加载中....

@rijuyuezhu

Copy link
Copy Markdown
Author

Closing temporarily to revise the PR description before resubmitting.

@rijuyuezhu rijuyuezhu closed this Sep 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant