API Reference / @gtkx/navigation / useStateForPath
Function: useStateForPath()
useStateForPath():
FocusedRouteState|undefined
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.