Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/TanStack/router
/ useCanGoBack
Function
useCanGoBack
packages/react-router/src/useCanGoBack.ts:3–5 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
1
import
{ useRouterState } from
'./useRouterState'
2
3
export
function
useCanGoBack() {
4
return
useRouterState({ select: (s) => s.location.state.__TSR_index !== 0 })
5
}
Callers
4
RootComponent
Function · 0.90
RootComponent
Function · 0.90
RootComponent
Function · 0.90
RootComponent
Function · 0.90
Calls
1
useRouterState
Function · 0.90
Tested by
1
RootComponent
Function · 0.72