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
Hey Willem, Did you create the workflow from new dashboard or novu/framework?
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?
Yes, it works with new dashboard workflows and @novu/framework workflows
Cheers, thanks for clarifying!