I have 7 post in the list. it has to show each 3 post when I click the Loadmore. Load More work until reach the 6 post then after it won't show the remaining one post and freeze after reach the 6 posts
By the looks of things, the value in your num_of_listing appears to be 6 - which matches the number of items that you're successfully returning.
I'm assuming the num_of_listing refers to the number of records returned? If you change this value to 10, I'd expect your "load more" function to work for 10 items.
If this is the case, then perhaps your num_of_listing should read num_of_listing: stop instead of num_of_listing: skip - since stop appears to get the total number of items whereas skip does not.
Load More issue
I have 7 post in the list. it has to show each 3 post when I click the Loadmore. Load More work until reach the 6 post then after it won't show the remaining one post and freeze after reach the 6 posts
By the looks of things, the value in your
num_of_listing
appears to be6
- which matches the number of items that you're successfully returning.I'm assuming the
num_of_listing
refers to the number of records returned? If you change this value to 10, I'd expect your "load more" function to work for 10 items.If this is the case, then perhaps your
num_of_listing
should readnum_of_listing: stop
instead ofnum_of_listing: skip
- since stop appears to get the total number of items whereas skip does not.Hopefully this helps!
is working on a reply...
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" button below.
Continue discussion