Skip to content

Commit 754844f

Browse files
committed
expose MessageSourceContext Consumer as part of the public API
1 parent 168f743 commit 754844f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* The Public API.
33
*/
4-
export { Provider } from './lib/MessageSourceContext';
4+
export { Provider, Consumer } from './lib/MessageSourceContext';
55
export { FetchingProvider } from './lib/FetchingProvider';
66
export { useMessageSource } from './lib/useMessageSource';
77
export { withMessages } from './lib/withMessages';

src/lib/MessageSourceContext.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ export { MessageSourceContext };
2525
* ...
2626
* </MessageSource.Provider>
2727
*/
28-
export const { Provider } = MessageSourceContext;
28+
export const { Provider, Consumer } = MessageSourceContext;

0 commit comments

Comments
 (0)