Fetches the data from the given endpoint, but splits the request into multiple requests if the specified parameter is larger than max specified.
endpoint The endpoint to fetch from.
params The parameters to pass to the endpoint.
max The maximum number of items to pass to the endpoint.
transform A function that accepts the endpoint response and transforms it into the desired type.
requestOptions Any additional options to pass to fetch.
The transformed response from the endpoint.
Fetches the data from the given endpoint, but splits the request into multiple requests if the specified parameter is larger than max specified.
endpoint The endpoint to fetch from. params The parameters to pass to the endpoint. max The maximum number of items to pass to the endpoint. transform A function that accepts the endpoint response and transforms it into the desired type. requestOptions Any additional options to pass to fetch. The transformed response from the endpoint.