UNPKG

@tanstack/react-router

Version:

Modern and scalable routing for React applications

6 lines (4 loc) 165 B
import { useRouterState } from './useRouterState' export function useCanGoBack() { return useRouterState({ select: (s) => s.location.state.__TSR_index !== 0 }) }