From 5a907dac52718d8d40366ad5761e35ba485de9e6 Mon Sep 17 00:00:00 2001 From: Julius Marminge <51714798+juliusmarminge@users.noreply.github.com> Date: Mon, 26 Oct 2026 06:28:15 -0700 Subject: [PATCH] test(web): say why the useStableCallback test renders without a router Co-Authored-By: Claude Opus 5.5 --- apps/web/src/hooks/useStableCallback.browser.test.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/web/src/hooks/useStableCallback.browser.test.tsx b/apps/web/src/hooks/useStableCallback.browser.test.tsx index 87742379f1e8b..ba331eff0e66f 100644 --- a/apps/web/src/hooks/useStableCallback.browser.test.tsx +++ b/apps/web/src/hooks/useStableCallback.browser.test.tsx @@ -21,6 +21,7 @@ describe("useStableCallback", () => { // child must still reach the handler of the render it commits with. it("calls the committing render's function from a child layout effect", async () => { const seen: string[] = []; + // A plain hook test; a router would add its own commits around the rerender. await using screen = await render(, { router: false }); await screen.rerender(); expect(seen).toEqual(["first->first", "second->second"]);