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

Auto save through onChange() and requestSave() #11

Closed
wants to merge 1 commit into from

Conversation

Acylation
Copy link
Contributor

@Acylation Acylation commented Aug 11, 2023

This is only a demo, and I haven't figure out if we need to remove the listener. Glad to make changes and adapt this into #10 if needed.

@Acylation Acylation mentioned this pull request Aug 11, 2023
@yuleicul
Copy link
Owner

Thank you. I'll take a look into listener removing and get back to you this week.

@Acylation
Copy link
Contributor Author

Thanks for taking time reviewing the PRs. I noticed that the memory leak problem of Ketcher React has been fixed recently but not released. Don't know if this is related. epam/ketcher#3027

@yuleicul
Copy link
Owner

Hello, @Acylation 👋 😃

I think we need to remove the listener manually using unsubscribe. Here is an example
ketcher-unsubsribe

FYI, implementations of subscribe and unsubscribe are here.

@Acylation
Copy link
Contributor Author

Changes are made according to your sample code in PR #10 and I will close this. Thanks for the instruction.

@Acylation Acylation closed this Aug 19, 2023
@Acylation Acylation deleted the auto-save-onchange branch August 19, 2023 17:50
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.

2 participants