discussion

Deskripsi:
- loading skeleton pertama pada list diskusi
- realtime setelah hapus diskusi

No Issues
This commit is contained in:
amel
2024-11-08 10:45:07 +08:00
parent 80f5abeaca
commit 2881c75394
5 changed files with 24 additions and 10 deletions

View File

@@ -45,15 +45,15 @@ export default function ListDiscussion({ id }: { id: string }) {
}
}
useShallowEffect(() => {
getData(false)
}, [isPage])
useShallowEffect(() => {
setPage(1)
getData(true)
}, [searchQuery])
useShallowEffect(() => {
getData(false)
}, [isPage])
useEffect(() => {
const handleScroll = async () => {
if (containerRef && containerRef.current) {
@@ -78,7 +78,6 @@ export default function ListDiscussion({ id }: { id: string }) {
useShallowEffect(() => {
console.log(notifLoadPage.get())
if (notifLoadPage.get().category == 'division/' + param.id + '/discussion' && notifLoadPage.get().load == true) {
setRefresh(true)
}