-
Notifications
You must be signed in to change notification settings - Fork 53
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
How to make sure component cleanup happens when no longer in use? #35
Comments
Hi @zapbampow, |
@f1ames, I thought I had found a solution by placing it inside a container component. I posted it here and closed the issue. Soon after that I realized the problem wasn't actually solved. So I deleted my solution, but couldn't reopen or delete the issue. I also couldn't reproduce the issue in a simplified app. My current solution is to live with it and manually reload the page after navigating |
Thanks for the insights @zapbampow. I have reopened the issue, so we know it is not solved yet. |
By the way @zapbampow, would you be able to provide for example a simple codepen which reproduces this issue so we may take closer look? |
Hello @zapbampow, Could you check if the issue is indeed fixed (you need CKEditor |
Thanks @zapbampow for rechecking this issue. Since you still get an error, I will leave this issue open so we may get back to it and check what's going on 👍 |
@zapbampow could you take a look if #91 fixes your issue (it's already merged to |
Hi @zapbampow, It's been a while since we last heard from you. We're closing this issue for now. Still, feel free to provide us requested feedback, so that we can reopen this issue. |
I'm having what I believe is a cleanup problem with my editor react component.
Here is a simplified version of my code and what is going on.
I have a react-router
<Switch />
component that will show either<Dashboard />
or<Editor />
.<Editor />
is a form, which includes<CKEditor />
.Finally, I can moved directly between the Dashboard to the Editor .
Here is what I'm running into. If I go to
<Editor />
, then to<Dashboard />
, and back to<Editor />
, then CKEditor fails to load and the whole page stalls. As far as I can tell, the original instance is still in the DOM and it is trying to create a new instance with the same name. At least that's what I'm guessing is going on. It could certainly be something else.I'm getting
TypeErrors
thata is null
andthis.editor is null
.I'm trying to figure out how to make sure that the first instance of
<CKEditor />
is removed so that it can load again on the page when I return to the<Editor />
component.The text was updated successfully, but these errors were encountered: