페이징 방어코드 추가

This commit is contained in:
focp212@naver.com
2025-10-26 12:35:09 +09:00
parent f4b8ee29d8
commit fdedc3d519
22 changed files with 459 additions and 254 deletions

View File

@@ -67,6 +67,7 @@ export const EscrowListPage = () => {
if(entry.isIntersecting){
console.log('Element is now intersecting with the root. [' + onActionIntersect + ']');
if(onActionIntersect && !!pageParam.cursor){
setOnActionIntersect(false);
callList('page');
}
}
@@ -113,6 +114,7 @@ export const EscrowListPage = () => {
setListItems(rs.content);
}
if(rs.hasNext
&& rs.nextCursor !== pageParam.cursor
&& rs.content.length === DEFAULT_PAGE_PARAM.size
){
setPageParam({
@@ -128,6 +130,7 @@ export const EscrowListPage = () => {
}
setOnActionIntersect(
!!rs.hasNext
&& rs.nextCursor !== pageParam.cursor
&& rs.content.length === DEFAULT_PAGE_PARAM.size
);
});