Repository navigation
fix: ignore stale contract pagination responses - #2
Merged
Merged
Conversation
Collaborator
|
The fix looks right — the race is still on It's conflicting on |
Collaborator
Author
|
Rebased onto main. The only conflict was the |
graykode
force-pushed
the
fix/stale-contract-pagination
branch
from
October 22, 2026 00:21
81e5f2e to
a9ceb51
Compare
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.
An Older request can finish after the user changes a contract filter and overwrite the new results with the previous list. A late failure can also display an error after a refresh or after leaving the page.
Carry the initial read's cancellation guard into its pagination requests. Once that read is cancelled, ignore its pagination responses and errors, and prevent further requests from its cursor. This also handles returning to the same filter after an intervening change.
Add component tests with controlled promise resolution to cover filter changes, refreshes, offset changes, unmounting, and normal pagination. The regression cases fail on main and pass with the fix. jsdom is added as a development dependency to run the DOM tests with the existing Node/Vite test setup.
Validation:
pnpm typecheck,pnpm lint,pnpm openapi:check, andpnpm testall pass.cc @Joon2000