I am building a app where data is need to me shown in descending order of time means latest posts at the top of page. So suppose if i have 50 posts and while fetching the first page result, i am getting the posts from id 50 - 41 (getting per page 10 records). And in a while new post has been added to the data set, suppose 51 - 55, and for the user is using the old data set, will fetch the second page result ie. ( 40 - 31 ), but when he send page number as 2 in the query, kaminari will get the result from total count ie now 55, and on page 2 it will give result from 45-36, so user will have the duplicate result from ( 41- 45 ).
Is there any concept in kaminari, where i can send the last object it, after which i need the result?
Aucun commentaire:
Enregistrer un commentaire