-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove email campaigns factory #148
base: next
Are you sure you want to change the base?
Conversation
29758fb
to
dd52872
Compare
primary: <FormattedMessage id="menu.newsletter.emailCampaigns" defaultMessage="Email campaigns" />, | ||
route: { | ||
path: "/newsletter/email-campaigns", | ||
component: () => <EmailCampaignsPage EmailCampaignContentBlock={EmailCampaignContentBlock} />, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
component: () => <EmailCampaignsPage EmailCampaignContentBlock={EmailCampaignContentBlock} />, | |
render: () => <EmailCampaignsPage EmailCampaignContentBlock={EmailCampaignContentBlock} />, |
This must be render
or the component will unmount on every render: https://v5.reactrouter.com/web/api/Route/component#:~:text=That%20means%20if%20you%20provide%20an%20inline%20function%20to%20the%20component%20prop%2C%20you%20would%20create%20a%20new%20component%20every%20render.
"@comet/brevo-admin": major | ||
--- | ||
|
||
Remove factory createEmailCampaignsPage |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove factory createEmailCampaignsPage | |
Remove `createEmailCampaignsPage` factory |
This needs a rebase @raphaelblum 🙏🏻 |
depends on !147
COM-1053
Description
The factory is not needed. I'd like to simplify creating the EmailCampaignsPage.