Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TanStack/router
/ useCanGoBack
Function
useCanGoBack
packages/solid-router/src/useCanGoBack.ts:4–9 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
2
import
{ useRouter } from
'./useRouter'
3
4
export
function
useCanGoBack() {
5
const
router = useRouter()
6
return
Solid.createMemo(
7
() => router.stores.location.get().state.__TSR_index !== 0,
8
)
9
}
Callers
5
RootComponent
Function · 0.90
RootComponent
Function · 0.90
RootComponent
Function · 0.90
RootComponent
Function · 0.90
RootComponent
Function · 0.90
Calls
2
useRouter
Function · 0.90
get
Method · 0.65
Tested by
1
RootComponent
Function · 0.72