Skip to content

Commit 7e020bf

Browse files
committed
fix: docs
1 parent e1079a3 commit 7e020bf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/browser-sdk/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ type Configuration = {
109109
staleTimeMs?: number; // at initialization time features are loaded from the cache unless they have gone stale. Defaults to 0 which means the cache is disabled. Increase in the case of a non-SPA
110110
expireTimeMs?: number; // In case we're unable to fetch features from Bucket, cached/stale features will be used instead until they expire after `expireTimeMs`. Default is 30 days
111111
};
112-
hooks?: Hooks[] | Hooks[][]; // See the "Hooks" section below.
113112
};
114113
```
115114

@@ -328,7 +327,7 @@ const client = new BucketClient({
328327
// options
329328
});
330329

331-
// or add the hooks after construction:
330+
// add the event listener
332331
const unsub = client.on("enabledCheck", (check: CheckEvent) =>
333332
console.log(`Check event ${check}`),
334333
);

0 commit comments

Comments
 (0)