Pages through an offset-paginated data source, accumulating every item until total has been reached.
Use when a caller genuinely needs the full set rather than a single page — for example, populating a
dropdown of every configured language. Returns the same { data: { items, total } } shape as a
single-page fetch, or { error } if any page fails.
If the server reports a higher total than it actually delivers — i.e. an empty page is returned
before allItems.length reaches total — the function fails with an error rather than silently
truncating, since a partial "fetch all" result would mislead the caller.
Pages through an offset-paginated data source, accumulating every item until
totalhas been reached. Use when a caller genuinely needs the full set rather than a single page — for example, populating a dropdown of every configured language. Returns the same{ data: { items, total } }shape as a single-page fetch, or{ error }if any page fails.If the server reports a higher
totalthan it actually delivers — i.e. an empty page is returned beforeallItems.lengthreachestotal— the function fails with an error rather than silently truncating, since a partial "fetch all" result would mislead the caller.