From 3b9d23fb77e792d1828cc4c7ba17624b46737af5 Mon Sep 17 00:00:00 2001 From: Kevin Killingsworth Date: Thu, 16 Aug 2018 10:27:57 -0500 Subject: [PATCH] Data: Add RegistryConsumer export (#9042) The plugin code relies on the RegistryProvider to be able to add functionality to the registry. `withSelect` uses the RegistryConsumer, but code outside of `@wordpress/data` can't access this modified registry at all (even though it can create it!). This solves the incongruence by simply exporting RegistryConsumer as well. --- packages/data/src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/data/src/index.js b/packages/data/src/index.js index 308298c506409..2fb7c3b68d9bd 100644 --- a/packages/data/src/index.js +++ b/packages/data/src/index.js @@ -11,7 +11,7 @@ import * as plugins from './plugins'; export { default as withSelect } from './components/with-select'; export { default as withDispatch } from './components/with-dispatch'; -export { default as RegistryProvider } from './components/registry-provider'; +export { default as RegistryProvider, RegistryConsumer } from './components/registry-provider'; export { createRegistry } from './registry'; export { withRehydration,