Function useStateSafe

  • Wrapper around react's useState hook. Use this hook to prevent memory leak as this wont call set state on unmounted component.

    Type Parameters

    • T

    Parameters

    • initialValue: useStateSafeParams<T>

      initial state value

    Returns [T, dispatch<T>]

Generated using TypeDoc