Skip to content

Block j/k while a page switch is in flight - #32

Merged
Shaance merged 1 commit into
mainfrom
fix/jk-no-stack-during-fetch
Nov 5, 2026
Merged

Shaance merged 1 commit into
mainfrom
fix/jk-no-stack-during-fetch

Conversation

@Shaance

@Shaance Shaance commented Nov 5, 2026

Copy link
Copy Markdown
Owner

After j advanced to the next page, the old list stays displayed until the fetch lands, so another j at the last index stacked another advance (jumping to page 3). next_story/prev_story now ignore input while the displayed list is stale or loading; the page advance is also blocked during a same-page refresh, but mid-list selection still moves then. Based on feat/jk-flow-across-pages (#31).

After j advanced to the next page, the old list stays displayed (stale) until
the fetch lands, so another j at the last index stacked a second page advance
and jumped to page 3. next_story/prev_story now ignore input while the
displayed list is stale or a fetch is loading, and the page advance is also
blocked during a same-page refresh (mid-list selection still moves then).

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
@Shaance
Shaance force-pushed the fix/jk-no-stack-during-fetch branch from ccbfe5d to 96b32cc Compare November 5, 2026 16:32
@Shaance
Shaance merged commit 7aeaa1a into main Nov 5, 2026
@Shaance
Shaance deleted the fix/jk-no-stack-during-fetch branch November 5, 2026 16:32
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