We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 89aaf73 + 46bff98 commit ef3b348Copy full SHA for ef3b348
src/core/ReactContext.js
@@ -13,6 +13,7 @@
13
14
var assign = require('Object.assign');
15
var emptyObject = require('emptyObject');
16
+var monitorCodeUse = require('monitorCodeUse');
17
18
/**
19
* Keeps track of the current context.
@@ -45,6 +46,8 @@ var ReactContext = {
45
46
* @return {ReactComponent|array<ReactComponent>}
47
*/
48
withContext: function(newContext, scopedCallback) {
49
+ monitorCodeUse('react_with_context', {newContext: newContext});
50
+
51
var result;
52
var previousContext = ReactContext.current;
53
ReactContext.current = assign({}, previousContext, newContext);
0 commit comments