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.
1 parent 6b6e2bf commit 917b24aCopy full SHA for 917b24a
modules/createContext.js
@@ -20,9 +20,12 @@ function getPropType(value) {
20
return valueTypes[type] || PropTypes.any;
21
}
22
23
+// TODO: Swap this out for Symbol once we don't need a shim for it.
24
+let uid = 1;
25
+
26
function createContext(defaultValue) {
27
const valueType = getPropType(defaultValue);
- const channel = Symbol();
28
+ const channel = uid++;
29
30
/**
31
* A <Provider> is a container for a "value" that its <Consumer>
0 commit comments