Skip to content

Commit 0b5c116

Browse files
aryaemami59markerikson
authored andcommitted
Add TODO comment about different rendering behaviors in React 18 vs 19
1 parent 5df69fc commit 0b5c116

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/components/hooks.spec.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ describe('React', () => {
146146

147147
// 2. Batched update from nested subscriber / C1 re-render
148148
// Not sure why the differences across versions here
149+
// TODO: Figure out why this is 3 in React 18 but 2 in React 19
149150
const numFinalRenders = IS_REACT_18 ? 3 : 2
150151
expect(renderSpy2).toHaveBeenCalledTimes(numFinalRenders)
151152
})

0 commit comments

Comments
 (0)