Skip to content

Commit

Permalink
Imported bugfix from facebook/react/pull/14940
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Vaughn committed Feb 24, 2019
1 parent ded997e commit da72502
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/backend/ReactDebugHooks.js
Expand Up @@ -87,6 +87,10 @@ function readContext<T>(
}

function useContext<T>(context: any, observedBits: void | number | boolean): T {
if (__DEV__) {
// ReactFiberHooks only adds context to the hooks list in DEV.
nextHook();
}
hookLog.push({
primitive: 'Context',
stackError: new Error(),
Expand Down

0 comments on commit da72502

Please sign in to comment.