📄 useHistorySelector¶
📊 Analysis Summary¶
| Metric | Count |
|---|---|
| 🔧 Functions | 1 |
| 📦 Imports | 2 |
| 📑 Type Aliases | 1 |
📚 Table of Contents¶
🛠️ File Location:¶
📂 packages/website/src/hooks/useHistorySelector.ts
📦 Imports¶
| Name | Source |
|---|---|
useHistory |
@docusaurus/router |
useSyncExternalStore |
react |
Functions¶
useHistorySelector(selector: HistorySelector<T>, getServerSnapshot: () => T): T¶
Parameters:
selectorHistorySelector<T>getServerSnapshot() => T
Returns: T
Calls:
useHistory (from @docusaurus/router)useSyncExternalStore (from react)selector
Internal Comments:
Code
Type Aliases¶
HistorySelector<T>¶
Generated by Syntax Scribe