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 uppy.close()
-related issues that occurred in Dashboard
#397
Conversation
….render()` on it Closes #396
close()
with Dashboarduppy.close()
-related issues that occurred in Dashboard
i wonder what the root cause is here. is |
Yes, I think that is it, and it also the reason for what I mentioned in Slack:
|
Makes me wonder if all of our troubles will be solved by just going with Preact. I am 70% sold at this point anyway, for reasons I can list again:
|
I imagine there are other places where this might be biting us then. I think we need to cancel the animation frame on unmount somehow. We could PR nanoraf to add a How do you feel about the suggestion in the latter half in this comment btw? #297 (comment) I think that'd be a nice way to have a migration path for us and it would allow others to use whatever view library they prefer for their own plugins. |
will look into that as a quick solution, thanks!
Replied there, agreed! I like this approach a lot. |
So how shall we handle this? Should I merge this PR or just disable |
Disabling nanoraf would be really bad for performance, especially when adding new files. I think a condition inside updateUI would be quite simple and effective. Maybe by checking a |
Fixes #396
Check that plugin acquired with
getPlugin()
exists before callingrender()
on it.