RxJS expand pagination: choosing the right termination condition for a cursor-based API walk
I'm building an RxJS pipeline that walks a cursor-paginated REST endpoint using the expand operator. Each page response returns { items, nextCursor } , and the projection fetches the next page whenever a cursor is present. The unresolved decision is how the walk should terminate, because the endpoint's contract is ambiguous: some queries return an empty item