Skip to content

Commit 90691ed

Browse files
authored
docs: Add hooks hint to extraction.mdx (#2348)
1 parent 30d1004 commit 90691ed

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

docs/src/pages/docs/usage/extraction.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,8 @@ async function AsyncExample() {
344344
}
345345
```
346346

347+
Note that `useExtracted` can be called in components, but also in hooks—which may come in handy if you want to share extracted labels.
348+
347349
## Monorepos and external packages [#monorepos-external-packages]
348350

349351
Whenever your app pulls in external modules that call `useExtracted`, whether it's a sibling package in your monorepo or a reusable library installed in `node_modules`, there are two typical setups you can choose from.

0 commit comments

Comments
 (0)