mirror of
https://github.com/cloudflare/vinext.git
synced 2026-05-09 08:25:34 +02:00
[PR #1019] [MERGED] refactor(app-router): extract browser navigation lifecycle controller #1023
Labels
No labels
enhancement
enhancement
good first issue
help wanted
nextjs-tracking
nextjs-tracking
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vinext#1023
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/cloudflare/vinext/pull/1019
Author: @NathanDrake2406
Created: 5/2/2026
Status: ✅ Merged
Merged: 5/3/2026
Merged by: @james-elicx
Base:
main← Head:nathan/app-browser-navigation-controller📝 Commits (5)
9ce9934refactor(app-router): extract browser navigation lifecycle controller6e7b621fix(app-router): separate render ids from navigation ids462927emerge(upstream): resolve browser navigation conflictsbfd5d98fix(app-router): satisfy ci lint rules4a45b37fix(app-router): narrow controller surface, add hmrReplaceTree, restore lost comments, fix tests📊 Changes
3 files changed (+1030 additions, -523 deletions)
View changed files
📝
packages/vinext/src/server/app-browser-entry.ts(+124 -522)➕
packages/vinext/src/server/app-browser-navigation-controller.ts(+582 -0)📝
tests/app-browser-entry.test.ts(+324 -1)📄 Description
Summary
Extract the App Router browser navigation lifecycle into
app-browser-navigation-controller.tssoapp-browser-entry.tsonly wires the browser root and delegates lifecycle authority.This keeps behavior unchanged while making the current lifecycle explicit and testable ahead of #726. Scope intentionally excludes route semantics, cache reuse, router-kernel changes, and any new lifecycle policy.
What changed
app-browser-entry.tsthin: it now adapts browser state into the controller and delegates navigation / same-URL commits.Verification
vp test tests/app-browser-entry.test.tsNext.js references
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.