Skip to content
This repository has been archived by the owner on Jul 8, 2023. It is now read-only.

Commit

Permalink
props.debounce to props.throttle in Demo and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
nmccready committed Aug 28, 2018
1 parent a4f76aa commit dcb742f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/throttle-handler/demo/index.js
Expand Up @@ -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 = () => (
Expand All @@ -40,7 +40,7 @@ const MainDemo = () => (
}
</style>
<Demo1 label='Demo 1' />
<Demo2 label='Demo 2 w throttle' debounce={1000} />
<Demo2 label='Demo 2 w throttle' throttle={1000} />
<Demo2 label='Demo 2 w/o throttle' />
</div>
)
Expand Down
4 changes: 2 additions & 2 deletions packages/throttle-handler/readme.md
Expand Up @@ -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 = () => (
Expand All @@ -60,7 +60,7 @@ const MainDemo = () => (
}
</style>
<Demo1 label='Demo 1' />
<Demo2 label='Demo 2 w throttle' debounce={1000} />
<Demo2 label='Demo 2 w throttle' throttle={1000} />
<Demo2 label='Demo 2 w/o throttle' />
</div>
)
Expand Down

0 comments on commit dcb742f

Please sign in to comment.