issue in fetching notifications using graphql
by: @Karine Brandelli
ref:- https://discord.com/channels/895029566685462578/1153378632866209792/1153389454489293020
8 Replies
Hi @Karine Brandelli
How you are displaying in-app notifications?
using prebuilt react component or hooks?
How you are triggering the workflow ?
hey Pawan! currently we use this structure
simplifying of course haha
we use a graphql query to render de notifications
I just don't know exactly how to trigger that with novu
Why you are using graphql to fetch notifications?
You can just use our
useNotifications
hook.that's what I want to know
these all will be refactor using Novu standarts
how can I do that with
useNotifications
?I can share an example with you
Currently we are missing an example
https://docs.novu.co/notification-center/client/react/customization#usenotifications
I don't see the example in the link you sent
We are missing example currently
Hi @karinebrandelli
Checkout this example on how to use
useNotifications
hook to build your custom notification center.
https://codesandbox.io/s/usenotifications-usefetchnotifications-hook-2t6sgzHi Pawan! Thanks, I'll check later