fix: load refresh notifikasi list

This commit is contained in:
amel
2025-04-16 14:42:41 +08:00
parent e9a6cd59c8
commit fbafd4c024
2 changed files with 10 additions and 2 deletions

View File

@@ -49,7 +49,15 @@ export default function ListNotification() {
useShallowEffect(() => {
fetchData(false);
}, [isPage, reloadNotif.get()]);
}, [isPage]);
useShallowEffect(() => {
if (isPage != 1) {
setPage(1)
} else {
fetchData(false)
}
}, [reloadNotif.get()]);
useEffect(() => {
const handleScroll = async () => {