-
Notifications
You must be signed in to change notification settings - Fork 100
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
Can't destroy the editor within a context #354
Comments
Some debugging notesIt seems that the issue has been introduced while working on #349. The original problem concerned a situation, where The above shows an issue, where some watchdog instances are destroyed within To avoid this behavior, we introduced a fix that delegates the destroy process to this._contextWatchdog.remove( this._id ); is required. Potential solutionPotentially, we can try to detect if destroy was triggered by Unfortunately, we don't have any information on which component was removed, so it might be difficult to detect that the whole process should be handled by One thing to consider - after destroying The above should fix #349 and the current issue. I will try to push some PoC fix to the branch and share it here. |
I have created a PoC for the above on branch |
Fix: Fixed destroy process of a single editor instance working within Context. Closes #354.
Steps to reproduce
npm install && npm run build
.samples/real-time-collaboration-for-react.html
.Actual result
The editor instance is not destroyed.
Expected result
The editor instance is destroyed.
Notes
It's a regression introduced in v5.0.5.
The text was updated successfully, but these errors were encountered: