MCPcopy
hub / github.com/TanStack/router / useCanGoBack

Function useCanGoBack

packages/solid-router/src/useCanGoBack.ts:3–5  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1import { useRouterState } from './useRouterState'
2
3export function useCanGoBack() {
4 return useRouterState({ select: (s) => s.location.state.__TSR_index !== 0 })
5}

Callers 4

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

Calls 1

useRouterStateFunction · 0.90

Tested by 1

RootComponentFunction · 0.72