Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions apps/web/src/hooks/useStableCallback.browser.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(<Parent value="first" seen={seen} />, { router: false });
await screen.rerender(<Parent value="second" seen={seen} />);
expect(seen).toEqual(["first->first", "second->second"]);
Expand Down
Loading