Pagination - RecyclerView inside NestedScrollView

I tried recyclerview inside a nestedScrollView using paging 3 library but it loads all the data, so I tried manually using the code below. I also set the isNestedScrolling = false

The “diff” is calling multiple times after 1 to 5 scroll to the bottom and sometime even I didnt touched or scroll it still calling the “diff”. Example result:


can someone help me on this?

Thank you.