Skip to content

API Reference / @gtkx/navigation / useNavigationState

Function: useNavigationState() ​

useNavigationState<ParamList, T>(selector): T

Hook to get a value from the current navigation state using a selector.

Type Parameters ​

ParamList ​

ParamList extends ParamListBase

T ​

T

Parameters ​

selector ​

Selector<ParamList, T>

Selector function to get a value from the state.

Returns ​

T