Skip to content

Commit 4ef6156

Browse files
Update libs/hooks/debounce/README.md
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> Signed-off-by: Todd Baert <[email protected]>
1 parent e94812a commit 4ef6156

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/hooks/debounce/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ NOTE: if you're using the React or Angular OpenFeature SDKs, you don't need to d
2323

2424
The hook maintains a simple expiring cache with a fixed max size and keeps a record of recent evaluations based on a user-defined key-generation function (keySupplier).
2525
Simply wrap your hook with the debounce hook by passing it a constructor arg, and then configure the remaining options.
26-
In the example below, we wrap the "after" stage of a logging hook so that it only logs a maximum of once a minute for each flag key, no matter how many times that flag is evaluated.
26+
In the example below, we wrap a logging hook. This debounces all its stages, so it only logs a maximum of once a minute for each flag key, no matter how many times that flag is evaluated.
2727

2828
```ts
2929
const debounceHook = new DebounceHook<string>(loggingHook, {

0 commit comments

Comments
 (0)