Fetching notifications on socket event
What I'm trying to do is get a Mantine popup notification when I get a new Notification from Novu. Here is what I'm trying to do (code below). Yet when I log out the notifications, it's just an empty array, even after the
refetch()
call. Any ideas?
7 Replies
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
I had a go at this for a quick prototype. I had to use an extra useEffect before I could get a toast notification popping up
thanks! i'll give this a try in the morning 🙂
Hi @dr.really
Let me know in this thread if you face any issue.
I will be happy to help
This worked like a charm! Sorry I got side tracked lol
Thanks 🙏🏻 @turtles for help.
Big thank you to @turtles indeed