upd: realtime

Deskripsi;
- realtime halaman diskusi

No Issues
This commit is contained in:
amel
2024-10-02 10:58:30 +08:00
parent 354f3cbd85
commit 0c525e8bae
2 changed files with 26 additions and 18 deletions

View File

@@ -25,6 +25,7 @@ export default function WrapLayout({ children, role, theme, user }: { children:
}, [role, theme])
useShallowEffect(() => {
console.log(data)
if (data && data.some((i: any) => i.idUserTo == user)) {
setTampilNotif(true)
setTimeout(() => {