Skip to content

fix: Refresh live project queries together - #564

Merged
xingkaixin merged 2 commits into
mainfrom
feat/live-project-query-refresh
Aug 31, 2026
Merged

fix: Refresh live project queries together#564
xingkaixin merged 2 commits into
mainfrom
feat/live-project-query-refresh

Conversation

@xingkaixin

@xingkaixin xingkaixin commented Aug 31, 2026

Copy link
Copy Markdown
Owner

Project live refresh only updated the first catalog page. Details fetched for projects outside that page and later pagination queries retained outdated statistics after session changes.

Group project page and detail queries under their time window and refresh that family for live updates and resynchronization. Active queries refetch, inactive pages become stale, and other windows remain untouched. When the server rejects a stale pagination cursor, navigation returns to a refreshed first page; ordinary request failures remain retryable on the current page. Recovery only resets the window and cursor that requested it, so a delayed response cannot overwrite newer navigation.

Validation:

  • Reproduced stale project counts through the live store and project lookup before the change.
  • Added regressions for live/resync detail refresh, inactive pages, window isolation, stale cursor recovery, cross-window recovery races, and ordinary request failures.
  • Passed local lint, formatting, typecheck, build, and tests.

@xingkaixin
xingkaixin merged commit 61fa5ba into main Aug 31, 2026
10 checks passed
@xingkaixin
xingkaixin deleted the feat/live-project-query-refresh branch August 31, 2026 01:35
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