+
+ # We are using created_at time slightly greater/lower than the last object created_at (see next block comment).
+ # This would mean that the server would now return the previous last item(s) with matching created_at again.
+ # Hence, we need to remove the previous last_uuids from results before displaying the rest of the results
+ # to prevent "infinite" infinite scrolling.
+ if params['last_uuids'] and @objects.any?
+ last_uuids = JSON.parse params['last_uuids']
+ @objects.reject! do |obj|
+ last_uuids.include? obj.uuid
+ end
+ end
+