@devries-cameron20 / t3code Mirror · read-only / commits / 7d3208cbea
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 22, 15:45 UTC

test(web): say why the useStableCallback test renders without a router (#25493)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

Julius Marminge committed Oct 26, 2026 at 06:34 UTC 7d3208cbea86b91574366bb6e87d05f93c975127
1 file changed +1
apps/web/src/hooks/useStableCallback.browser.test.tsx
+1
@@ -21,6 +21,7 @@ describe("useStableCallback", () => {
21 // child must still reach the handler of the render it commits with.
22 it("calls the committing render's function from a child layout effect", async () => {
23 const seen: string[] = [];
24 + // A plain hook test; a router would add its own commits around the rerender.
25 await using screen = await render(<Parent value="first" seen={seen} />, { router: false });
26 await screen.rerender(<Parent value="second" seen={seen} />);
27 expect(seen).toEqual(["first->first", "second->second"]);