From 94b0efb5e55e39c0f7603055f9e3ee4d27dca791 Mon Sep 17 00:00:00 2001 From: Dominik Schilling Date: Thu, 13 Jun 2019 12:24:48 +0200 Subject: [PATCH 1/3] Fix missing closing tag for RegistryConsumer example --- packages/data/README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/data/README.md b/packages/data/README.md index cee8f5c9733d6..b97f49e6b355a 100644 --- a/packages/data/README.md +++ b/packages/data/README.md @@ -398,7 +398,7 @@ You can read more about the react context api here: _Usage_ -````js +```js const { RegistryProvider, RegistryConsumer, @@ -419,6 +419,7 @@ const App = ( { props } ) => { } +``` # **RegistryProvider** From 3ae8fcfa347a0682beed523e32f6a70c0dac2a32 Mon Sep 17 00:00:00 2001 From: Dominik Schilling Date: Tue, 25 Jun 2019 19:11:54 +0200 Subject: [PATCH 2/3] Revert "Fix missing closing tag for RegistryConsumer example" This reverts commit 2adbb36ecd74d9b9ff9952cb305f3a5bc1804931. --- packages/data/README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/data/README.md b/packages/data/README.md index b97f49e6b355a..cee8f5c9733d6 100644 --- a/packages/data/README.md +++ b/packages/data/README.md @@ -398,7 +398,7 @@ You can read more about the react context api here: _Usage_ -```js +````js const { RegistryProvider, RegistryConsumer, @@ -419,7 +419,6 @@ const App = ( { props } ) => { } -``` # **RegistryProvider** From 1cbeb073b382754e4d2425276c85eaf73ff0acc4 Mon Sep 17 00:00:00 2001 From: Dominik Schilling Date: Tue, 25 Jun 2019 19:15:30 +0200 Subject: [PATCH 3/3] Fix missing closing tag for RegistryConsumer example --- packages/data/README.md | 7 ++++--- packages/data/src/components/registry-provider/context.js | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/data/README.md b/packages/data/README.md index cee8f5c9733d6..0e117eca77d87 100644 --- a/packages/data/README.md +++ b/packages/data/README.md @@ -398,7 +398,7 @@ You can read more about the react context api here: _Usage_ -````js +```js const { RegistryProvider, RegistryConsumer, @@ -419,6 +419,7 @@ const App = ( { props } ) => { } +``` # **RegistryProvider** @@ -434,13 +435,13 @@ Given the name of a registered store, returns an object of the store's selectors The selector functions are been pre-bound to pass the current state automatically. As a consumer, you need only pass arguments of the selector, if applicable. -*Usage* +_Usage_ ```js const { select } = wp.data; select( 'my-shop' ).getPrice( 'hammer' ); -```` +``` _Parameters_ diff --git a/packages/data/src/components/registry-provider/context.js b/packages/data/src/components/registry-provider/context.js index a1fe1a9e56183..157225a7c7888 100644 --- a/packages/data/src/components/registry-provider/context.js +++ b/packages/data/src/components/registry-provider/context.js @@ -41,6 +41,7 @@ const { Consumer, Provider } = Context; * * * } + * ``` */ export const RegistryConsumer = Consumer;