Hook that returns selected data from the store using a selector.
Function that derives a value from the store state.
Optional
Determines when the selected value should update.
The selected slice of state.
Hook that returns selected data from the store using a selector.