Skip to content

Commit

Permalink
Merge branch 'master' into rollup
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon committed Mar 24, 2017
2 parents 0fd8aa6 + 0a41890 commit 4691521
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion docs/docs/context.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ If `contextTypes` is not defined, then `context` will be an empty object.
Context can also let you build an API where parents and children communicate. For example, one library that works this way is [React Router V4](https://reacttraining.com/react-router):

```javascript
import { Router, Route, Link } from 'react-router-dom';
import { BrowserRouter as Router, Route, Link } from 'react-router-dom';

const BasicExample = () => (
<Router>
Expand Down
5 changes: 0 additions & 5 deletions src/renderers/shared/utils/ReactErrorUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,7 @@ const ReactErrorUtils = {
typeof injectedErrorUtils.invokeGuardedCallback === 'function',
'Injected invokeGuardedCallback() must be a function.',
);
invariant(
typeof injectedErrorUtils.rethrowCaughtError === 'function',
'Injected rethrowCaughtError() must be a function.',
);
invokeGuardedCallback = injectedErrorUtils.invokeGuardedCallback;
rethrowCaughtError = injectedErrorUtils.rethrowCaughtError;
},
},

Expand Down

0 comments on commit 4691521

Please sign in to comment.