N
Novu4d ago
son

Geting payload in notification object

I am using react hook but i dont get template name and also payload in notification object import { useNotifications } from '@novu/react/hooks'; can yuo tell me how to get payload. Currently I am trying to develop cusom inbox and need payload data to show content of notification. The body give string value not actual payload.
5 Replies
Pawan Jain
Pawan Jain4d ago
@son Currently payload is not sent with notifications. We are working on it and it will be available in few weeks
son
sonOP4d ago
but it is avilable in older version
Pawan Jain
Pawan Jain4d ago
Yes, in older version, payload was sent in notification response. New inbox component and associated apis currently does not return this info
son
sonOP4d ago
ok just checking older version is stable right I m using it to create custome inbox I hope it wont cause any issue
Pawan Jain
Pawan Jain4d ago
You can use older version if you are blocked due to this. Older version will not get new updates and will deprecate in few months. We will publish migration guide to new inbox component

Did you find this page helpful?