mapmethods to generate an array of
/publish/resources/find. This will allow us to seamlessly load additional resources, creating the effect of infinite scrolling.
continuationproperty to the response:
/publish/resources/findbefore the user reaches the end of the resource list. The value of this property will also be included in the body of that request.
"2". This is because we've loaded the first page of results and we would like to load the second page. But this value does not have to be a page number. The only requirement is that this value is a string.
continuationproperty is included in a response, that same
continuationproperty will be made available in the body of the next
POSTrequest that's sent to
null. This is because there isn't a previous response. But if you trigger another request by scrolling through the resources, the value of
"2"will be logged. You can use this behavior to load unique resources for each request.
optionsobject, create a
currentPagevariable that contains the value of the request body's
continuationproperty will be
nullon the initial request, provide a fall-back value of
continuationproperty in all responses as
response.sendmethod, create a variable that parses the number from the
currentPagevariable, increments it by one, and converts the result back into a string:
continuationproperty in the response: