Skip to content

Commit 9399752

Browse files
committed
display meaningful Context name in dev-tools
1 parent 2dde85f commit 9399752

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib/messageSource.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import { normalizeKeyPrefix } from './utils';
99
* A React Context which holds the translations map.
1010
*/
1111
const MessageSourceContext = React.createContext(null);
12+
MessageSourceContext.displayName = 'MessageSourceContext';
1213

1314
/**
1415
* Creates a HOC which passes the MessageSourceApi to the given Component.

0 commit comments

Comments
 (0)