# refactor\(web\): the pull requests route only validates its search; the page lives under components · PR \#22706 · pingdotgg/t3code

[View on GitCafe](https://git.cafe/pingdotgg/t3code/pull/22706)

Repository: [pingdotgg/t3code](https://git.cafe/pingdotgg/t3code)

Visibility: public

State: merged

Source repository: pingdotgg/t3code

Source branch: refactor/split-pull-requests-thin-route

Target branch: refactor/split-pull-requests-list-hooks

Head commit: bcb74b5d337e4a5c366e2599d9fca88a72b0a13d

[Discussion and reviews](https://git.cafe/pingdotgg/t3code/pull/22706)

[Commits](https://git.cafe/pingdotgg/t3code/pull/22706/commits?format=markdown)

[Files changed](https://git.cafe/pingdotgg/t3code/pull/22706/diffs?format=markdown)

## Description

---

The route file still held the whole page component. It now only validates the search params; the page moves verbatim into `components/pullRequest/PullRequestsPage.tsx`, reading search and navigation by route id (`useSearch({ from: "/_chat/pull-requests" })`, `useNavigate({ from: "/pull-requests" })`).

| File | Before | After |
|---|---|---|
| routes/_chat.pull-requests.tsx | 1,627 | 78 |
| PullRequestsPage.tsx | - | 1,548 |

Part of the pull request page split stack: #22671 → #22672 → #22702 → #22703 → #22704 → #22705 → #22706.

Measured with the rc-init render counter against a dev server seeded from real data (136 pull requests listed), fresh browser per side, main `6a6c84f990` vs the stack top. Opening a PR detail: 6482 / 947 / 1249 renders on main vs 6331 / 1187 / 956 on the stack (noise, the first open includes data arriving). Switching Summary/Timeline/Code: 2-13 renders per switch on both sides. Holding Shift 3 times on the list: 14952 vs 14937 renders; the page and column no longer re-render (6 + 6 before, 0 after), the rows still do because their speed-mode prop really changes.

Tests run on this layer: `tsc --noEmit` for apps/web, `vp lint` on the changed files, `vp test run src/reactCompilerCoverage.test.ts -t pullRequest` (every new file compiles with 0 bailouts), `vp test run src/components/pullRequest/pullRequestsRouteSearch.test.ts`.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

