• A hook for SCAPI custom endpoint queries.

    Besides calling custom endpoint, this hook does a few things for better DX.

    1. inject access token
    2. merge SCAPI client configurations from the CommerceApiProvider

    Parameters

    Returns UseQueryResult<unknown, unknown>

    A TanStack Query query hook with data from the custom API endpoint.