From dcb742f8ca5e7f5042d18ebd2467042b4b5f052f Mon Sep 17 00:00:00 2001 From: nmccready Date: Tue, 28 Aug 2018 16:17:44 -0400 Subject: [PATCH] props.debounce to props.throttle in Demo and docs --- packages/throttle-handler/demo/index.js | 4 ++-- packages/throttle-handler/readme.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/throttle-handler/demo/index.js b/packages/throttle-handler/demo/index.js index d14b1a6..f5d4032 100644 --- a/packages/throttle-handler/demo/index.js +++ b/packages/throttle-handler/demo/index.js @@ -24,7 +24,7 @@ const Demo2 = compose( withHandlers({ onButtonClick: ({ count, setCount }) => () => setCount(count + 1) }), - throttleHandler('onButtonClick', (props) => props.debounce || 0) + throttleHandler('onButtonClick', (props) => props.throttle || 0) )(Demo) const MainDemo = () => ( @@ -40,7 +40,7 @@ const MainDemo = () => ( } - + ) diff --git a/packages/throttle-handler/readme.md b/packages/throttle-handler/readme.md index 16b272b..bf15c6e 100644 --- a/packages/throttle-handler/readme.md +++ b/packages/throttle-handler/readme.md @@ -44,7 +44,7 @@ const Demo2 = compose( withHandlers({ onButtonClick: ({ count, setCount }) => () => setCount(count + 1) }), - throttleHandler('onButtonClick', (props) => props.debounce || 0) + throttleHandler('onButtonClick', (props) => props.throttle || 0) )(Demo) const MainDemo = () => ( @@ -60,7 +60,7 @@ const MainDemo = () => ( } - + )