Open rasel-stacklearner opened 6 months ago
@rasel-stacklearner My first thought: Are all of the createdAt dates guaranteed to be unique? If not, you should add a secondary, unique, sequential cursor in order to guarantee a stable sort (e.g. ID).
I don't have time to analyze your code in detail, but the next thought would be to double-check that you are using the proper cursor value (and not accidentally supplying the wrong value) to the withCursorPagination
function.
in this code when I click on load more button it gives me 20 images. but the second time it does not give me any image.
note: there are 26 images in my database
TRPC Procedure :
Frontend Code =>