+
+ # 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 item (last_uuid) from results before displaying the rest of the
+ # results to prevent "infinite" infinite scrolling.
+ if params['last_uuid'] and @objects.any?
+ @objects.each do |obj|
+ @objects.delete obj if obj.uuid.eql?(params['last_uuid'])
+ end
+ end
+