I am using \Magento\Catalog\Model\ResourceModel\Product\CollectionFactory
and loading data by creating objects.
$ collection = $ this->collectionFactory->create() ->addAttributeToSelect('*') ->addAttributeToFilter('type_id', array('simple', 'configurable')) ->setPageSize($ limit) ->setCurPage(1); $ result = $ collection->getData();
The $ result
contains the first-page result. Can I use the same object to render the second-page result?.