Skip to content

Commit

Permalink
Updated ReactIncremental-test to avoid triggering new DEV warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Vaughn committed Sep 28, 2018
1 parent 233459a commit 333d4e7
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -2357,6 +2357,9 @@ describe('ReactIncremental', () => {
componentDidCatch(error) {
// If context is pushed/popped correctly,
// This method will be used to handle the intentionally-thrown Error.
// We must schedule a state update to avoid triggering DEV warning.
// For the purposes of this test, it's okay the update is a no-op.
this.setState({});
}
render() {
return <ContextProvider depth={1} />;
Expand Down

0 comments on commit 333d4e7

Please sign in to comment.