fix(activity): add isLoading for each tab state

This commit is contained in:
Aminejv 2021-07-13 20:25:06 +01:00
parent 9c791aa741
commit 6cff05d205

View File

@ -36,7 +36,7 @@ export default function SceneActivity({ page, viewer, external, onAction }) {
useIntersection({ useIntersection({
ref: divRef, ref: divRef,
onIntersect: () => { onIntersect: () => {
if (feed?.length === 0 || isLoading) return; if (feed?.length === 0 || isLoading[tab]) return;
updateFeed(); updateFeed();
}, },
}); });