paging
This commit is contained in:
@@ -23,16 +23,15 @@ export const QnaListPage = () => {
|
||||
const onIntersect: IntersectionObserverCallback = (entries: Array<IntersectionObserverEntry>) => {
|
||||
|
||||
entries.forEach((entry: IntersectionObserverEntry) => {
|
||||
if(onActionIntersect){
|
||||
if(entry.isIntersecting){
|
||||
console.log('Element is now intersecting with the root.');
|
||||
if(entry.isIntersecting){
|
||||
console.log('Element is now intersecting with the root. [' + onActionIntersect + ']');
|
||||
if(onActionIntersect){
|
||||
callList();
|
||||
}
|
||||
else{
|
||||
console.log('Element is no longer intersecting with the root.');
|
||||
}
|
||||
}
|
||||
}
|
||||
else{
|
||||
console.log('Element is no longer intersecting with the root.');
|
||||
}
|
||||
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user