mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Fix typo in commet (#16727)
This commit is contained in:
committed by
Nicolas Gallagher
parent
4905590e1e
commit
38c03ce006
@@ -431,7 +431,7 @@ describe('ReactHooks', () => {
|
||||
expect(root).toMatchRenderedOutput('1');
|
||||
|
||||
// Update to the same state. React doesn't know if the queue is empty
|
||||
// because the alterate fiber has pending update priority, so we have to
|
||||
// because the alternate fiber has pending update priority, so we have to
|
||||
// enter the render phase before we can bail out. But we bail out before
|
||||
// rendering the child, and we don't fire any effects.
|
||||
act(() => setCounter(1));
|
||||
|
||||
Reference in New Issue
Block a user