clear notification indicator when notifications are received on the notification page
This commit is contained in:
parent
68e9dfd69c
commit
6042026c87
|
@ -11,13 +11,14 @@ export default function NotificationPage ({ ssrData }) {
|
|||
const client = useApolloClient()
|
||||
|
||||
useEffect(() => {
|
||||
console.log('clearing notifications')
|
||||
client?.writeQuery({
|
||||
query: HAS_NOTIFICATIONS,
|
||||
data: {
|
||||
hasNewNotes: false
|
||||
}
|
||||
})
|
||||
}, [])
|
||||
}, [ssrData])
|
||||
|
||||
return (
|
||||
<Layout>
|
||||
|
|
Loading…
Reference in New Issue