N
Novu3w ago
Willem

Undefined 'data' and 'redirect' properties: migrating from notification-center to @novu/react

I'm currently migrating our Novu notification center component to the new Inbox component and stumbled upon the issue where I cannot access the notification cta and payload. In the migration guide, it is stated that the cta and payload properties have been replaced with redirect and data properties. However, when I try to access these properties, the values appear to be undefined. Are there any changes required as well to ensure that the new redirect and data properties contain the values which were previously found in cta and payload?
Migration Guide | Novu Documentation
This guide outlines the key differences between the @novu/notification-center package and the new @novu/react package. Follow the steps below to migrate your application to the latest version.
4 Replies
Pawan Jain
Pawan Jain3w ago
Hey Willem, Did you create the workflow from new dashboard or novu/framework?
Willem
WillemOP3w ago
Hey Pawan, thanks for getting back to me so quickly. I haven't updated our frameworks workflows. Does that mean the new inbox component only works with workflows created in the updated dashboard?
Pawan Jain
Pawan Jain3w ago
Yes, it works with new dashboard workflows and @novu/framework workflows
Willem
WillemOP3w ago
Cheers, thanks for clarifying!

Did you find this page helpful?