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 13b044a commit 6a99c93Copy full SHA for 6a99c93
packages/react-router/modules/RouterContext.js
@@ -3,8 +3,8 @@ import createContext from "create-react-context";
3
4
const createNamedContext = name => {
5
const context = createContext();
6
- context.Provider.displayName = `${name}.Provider`;
7
- context.Consumer.displayName = `${name}.Consumer`;
+ context.displayName = name;
+
8
return context;
9
}
10
0 commit comments