Skip to content
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

fix: data persist on mails editor #126

Merged
merged 1 commit into from
Jul 21, 2022
Merged

Conversation

nubsthead
Copy link
Contributor

No description provided.

) {
if (!editors[editorId] || actionChanged) {
if (!editors[editorId] || isSameAction === false) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

!isSameAction and in the memo why don't we return default as false instead of undefined ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we start false as default it means every time we change module and come back it will trigger a new editor creation causing the opening of a new editor which is not the desiderata. We want to persist the editor values when we change module and this was the safest way

@giuliano176 giuliano176 merged commit 9ff8cca into devel Jul 21, 2022
@giuliano176 giuliano176 deleted the editor-data-persistency branch July 21, 2022 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants