fix: load refresh notifikasi list
This commit is contained in:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user