API Reference / @gtkx/navigation / useStateForPath
Function: useStateForPath()
useStateForPath():
FocusedRouteState|undefined
Defined in: node_modules/.pnpm/@react-navigation+core@7.21.13_patch_hash=6462da01ed23beee88f01d290d3714743e43d2fd84235198fcbe09501a61d1d4_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.