Short description of issue
Pagination is not respecting the given item size
Link to Shopify Store
Reproduction steps
Something has changed in terms of paginating collections in app blocks. The given item size is not respected. App block code to reproduce:
{% assign collection = collections['products-without-packs'] %}
<h1>First pagination 3</h1>
{% paginate collection.products by 3 %}
{% for collection_product in collection.products %}
{{ collection_product.id }}
<br>
{% endfor %}
<h2>{{ paginate.page_size }}</h2>
{% endpaginate %}
<h1>Second pagination 250</h1>
{% paginate collection.products by 250 %}
{% for collection_product in collection.products %}
{{ collection_product.id }}
<br>
{% endfor %}
<h2>{{ paginate.page_size }}</h2>
{% endpaginate %}
{% schema %}
{
"name": "Test",
"templates": ["product"],
"target": "section",
"settings": []
}
{% endschema %}
I am attaching a screenshot of the resulting page. As seen on the screenshot, the pagination of size 250 doesn’t yield 250 items. Please also note that the first pagination did not render the first 3 products of the collection.
Additional info
The collection used for testing has 150 products.
Sometimes, after reloading the page later, the result is different and more items are rendered. It seems there is some kind of caching involved.
What type of topic is this
Bug report