Function
navigate
({ itemUrl }: { itemUrl?: string })
Source from the content-addressed store, hash-verified
| 41 | >({}) |
| 42 | |
| 43 | function navigate({ itemUrl }: { itemUrl?: string }) { |
| 44 | if (!itemUrl) { |
| 45 | return |
| 46 | } |
| 47 | |
| 48 | const visibleUrl = itemUrl.replace('(docs)/', '') |
| 49 | |
| 50 | router.push(visibleUrl) |
| 51 | |
| 52 | if ( |
| 53 | visibleUrl === |
| 54 | window.location.pathname + window.location.search + window.location.hash |
| 55 | ) { |
| 56 | close() |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | let [autocomplete] = useState<Autocomplete>(() => |
| 61 | createAutocomplete< |
Callers
nothing calls this directly
Tested by
no test coverage detected