Function useLoading

  • Creates a hook that manages loading state for an injectable async function.

    Type Parameters

    • AF extends AsyncFunc

    Parameters

    • injectableFn: AF

      The async function to inject and track loading state for.

    Returns boolean

    • The loading state of the injectable function.

Generated using TypeDoc