MCPcopy 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

2import { useRouter } from './useRouter'
3
4export function useCanGoBack() {
5 const router = useRouter()
6 return Solid.createMemo(
7 () => router.stores.location.get().state.__TSR_index !== 0,
8 )
9}

Callers 5

RootComponentFunction · 0.90
RootComponentFunction · 0.90
RootComponentFunction · 0.90
RootComponentFunction · 0.90
RootComponentFunction · 0.90

Calls 2

useRouterFunction · 0.90
getMethod · 0.65

Tested by 1

RootComponentFunction · 0.72