Skip to content

fix: support unstable_prefetch route segment config#974

Closed
Divkix wants to merge 1 commit intocloudflare:mainfrom
Divkix:fix/849-unstable-prefetch-config
Closed

fix: support unstable_prefetch route segment config#974
Divkix wants to merge 1 commit intocloudflare:mainfrom
Divkix:fix/849-unstable-prefetch-config

Conversation

@Divkix
Copy link
Copy Markdown
Contributor

@Divkix Divkix commented Apr 29, 2026

Fixes #849

Summary

  • Add support for the new unstable_prefetch route segment config export decoupled from unstable_instant in Next.js
  • This config controls runtime prefetching behavior for App Router pages
  • Added unstable_prefetch export to config test fixture to validate recognition

Test plan

  • Updated tests/fixtures/app-basic/app/config-test/page.tsx to include export const unstable_prefetch = "static"
  • All 324 app-router tests pass
  • Lint and type checks pass

Ported from Next.js: vercel/next.js@ac6d993

Add support for the new unstable_prefetch route segment config export
decoupled from unstable_instant in Next.js. This config controls
runtime prefetching behavior for App Router pages.

- Add unstable_prefetch export to config test fixture
- Validates that vinext recognizes this export without errors

Ported from Next.js: vercel/next.js@ac6d993
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Apr 29, 2026

Open in StackBlitz

npm i https://pkg.pr.new/vinext@974

commit: e0ac959

@Divkix Divkix closed this Apr 29, 2026
@Divkix Divkix deleted the fix/849-unstable-prefetch-config branch April 29, 2026 21:14
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.

Support unstable_prefetch route segment config

1 participant