Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Robin 6 posts 86 karma points
    Feb 17, 2020 @ 14:44
    Robin
    0

    Content Filter + Pagination

    Hi,

    I've been testing the content filters using the Headless Client

    The filter functionality works well. But it seems to be a bug when I want to use pagination together with my filter results.

    When going to page 2, I also get the results from page 1. Is this the expected behaviour?

    EXAMPLE:
    
    client.delivery.content.filter(body, {page:1, pageSize:1})
    // SUCCESS, items array has 1 item
    
    client.delivery.content.filter(body, {page:2, pageSize:1})
    // FAILS, items array contains 2 items
    // I also get the results from 'page 1'
    
    client.delivery.content.filter(body, {page:3, pageSize:1})
    // FAILS, items array contains 3 items
    // I also get the results from 'page 1' & 'page 2'
    
  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies