Skip to content

Prefetch recent PR routes and background-refetch tab queries on webhook#73

Merged
stylessh merged 1 commit intomainfrom
stylessh/prefetch-tabs-webhooks
Apr 11, 2026
Merged

Prefetch recent PR routes and background-refetch tab queries on webhook#73
stylessh merged 1 commit intomainfrom
stylessh/prefetch-tabs-webhooks

Conversation

@stylessh
Copy link
Copy Markdown
Owner

Summary

  • On the overview page, proactively preload detail routes for the 10 most recent authored PRs once data loads, so navigation is near-instant without requiring hover
  • In the webhook revalidation hook, use refetchType: "all" when invalidating tab queries so data is fetched in the background even for tabs the user isn't currently viewing

Test plan

  • Open overview page, click a recent PR — should load instantly without delay
  • Open a PR in a tab, switch to another tab, trigger a webhook change on the first PR, switch back — data should already be fresh

…ground

On the overview page, preload detail routes for the 10 most recent
authored PRs as soon as data loads so navigation is near-instant.

In the webhook revalidation hook, use refetchType "all" so tab queries
are refetched even when the tab isn't actively viewed.
@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
🔵 In progress
View logs
diffkit b4e6e70 Commit Preview URL

Branch Preview URL
Apr 11 2026, 10:34 PM

@stylessh stylessh merged commit f191551 into main Apr 11, 2026
4 checks passed
stylessh added a commit that referenced this pull request Apr 18, 2026
…ground (#73)

On the overview page, preload detail routes for the 10 most recent
authored PRs as soon as data loads so navigation is near-instant.

In the webhook revalidation hook, use refetchType "all" so tab queries
are refetched even when the tab isn't actively viewed.
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