Function useAppSelector

  • Custom hook to select state from the Redux store. This is a typed version of the useSelector hook from 'react-redux'. Use this custom hook throughout your app instead of the plain useSelector for type safety.

    Type Parameters

    • TSelected

    Parameters

    • selector: ((state) => TSelected)
        • (state): TSelected
        • Parameters

          • state: Object

          Returns TSelected

    • Optional equalityFn: EqualityFn<NoInfer<TSelected>>

    Returns TSelected

  • Custom hook to select state from the Redux store. This is a typed version of the useSelector hook from 'react-redux'. Use this custom hook throughout your app instead of the plain useSelector for type safety.

    Type Parameters

    • Selected = unknown

    Parameters

    • selector: ((state) => Selected)
        • (state): Selected
        • Parameters

          • state: Object

          Returns Selected

    • Optional options: UseSelectorOptions<Selected>

    Returns Selected

Generated using TypeDoc