API Reference / @gtkx/navigation / useStateForPath
Function: useStateForPath()
useStateForPath():
FocusedRouteState|undefined
Defined in: node_modules/.pnpm/@react-navigation+core@7.21.13_react@19.2.8/node_modules/@react-navigation/core/lib/typescript/src/useStateForPath.d.ts:7
Hook to get a minimal state representation for the current route. The returned state can be used with getPathFromState to build a path.
Returns
FocusedRouteState | undefined
Minimal state to build a path for the current route.