Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/adobe/react-spectrum
/ useRouter
Function
useRouter
packages/dev/s2-docs/src/Router.tsx:127–129 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
125
}
126
127
export function useRouter(): RouterContextValue {
128
return useContext(RouterContext)!;
129
}
130
131
export function usePendingPage(): Page {
132
let {pages, currentPage} = useRouter();
Callers
15
Nav
Function · 0.90
useCurrentSection
Function · 0.90
MobileOnPageNav
Function · 0.90
PageSkeleton
Function · 0.90
OptimisticToc
Function · 0.90
OptimisticMobileToc
Function · 0.90
SearchMenu
Function · 0.90
Header
Function · 0.90
MobileHeader
Function · 0.90
MobileNav
Function · 0.90
SearchMenuTrigger
Function · 0.90
usePendingPage
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected