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
Thanks for posting, one of the @Moderator or @Support will address the matter as soon as possible πββοΈ
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