Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove usereducer eager bailout #22445

Merged
merged 10 commits into from
Sep 27, 2021
Prev Previous commit
Next Next commit
rename test
  • Loading branch information
josephsavona committed Sep 27, 2021
commit bf219621ca274800cb295f5c3c9b921c5aada4a1
Original file line number Diff line number Diff line change
Expand Up @@ -3867,9 +3867,7 @@ describe('ReactHooksWithNoopRenderer', () => {
});
});

// TODO: delete now that we removed the eager bailout optimization? or do we want to keep this
// around in some capacity?
it('eager bailout optimization should always compare to latest rendered reducer', () => {
it('useReducer does not eagerly bail out of state updates', () => {
// Edge case based on a bug report
let setCounter;
function App() {
Expand Down