Skip to content

Commit 6bd3b89

Browse files
keithamusmuan
andauthored
docs: clean up debouncing prose
Co-authored-by: Mu-An 慕安 <me@muanchiou.com>
1 parent 6ef05ef commit 6bd3b89

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/_guide/patterns.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Here are a few common patterns which we've avoided introducing into the Catalyst
1010

1111
### Debouncing or Throttling events
1212

13-
Often times you'll want to do something computationally intensive (or network intensive) based on a user event. It's worth throttling the amount of times a function can be called for these events, to prevent saturation of the CPU or network. For this we can use the "debounce" or "throttle" patterns. We recommend using the [`@github/mini-throttle`](https://github.com/github/mini-throttle) library for this, which provides convenient decorators to put on methods which will add throttling to them:
13+
Often times you'll want to do something computationally intensive (or network intensive) based on a user event. It's worth throttling the amount of times a function can be called for these events, to prevent saturation of the CPU or network. For this we can use the "debounce" or "throttle" patterns. We recommend using the [`@github/mini-throttle`](https://github.com/github/mini-throttle) library for this, which provides throttling decorators for methods:
1414

1515
```typescript
1616
import {controller} from '@github/catalyst'

0 commit comments

Comments
 (0)