-
Notifications
You must be signed in to change notification settings - Fork 50
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
Component destroyed #25
Comments
I tried make an Any help until wrapper update? |
When you have a similar issue and the solution is in another language :D. |
what did you mean? |
It seems like when the issue was closed another discussion was referenced as part of the issue's closing, I dont understand the referenced discussion because its in another language. Thats all : ) As I am trying to tackle this issue I found this repo by @JobLeonard 'https://github.com/JobLeonard/p5-react' in which he addresses the mounting problems. Im a newbie to both React and P5js so learning both of them at the same time and integrating them is quite the challenge :D. |
AcademiaWired/Traxometro is where I'm working, and I created that issue there because the problem with the I closed that issue because in my case, I know when my component will be destroyed and in this place I put I will look into the other repo that you mentioned as soon as possible. Thanks for you help! :D |
About the @JobLeonard's repo: It seems very good, and solve the unmount problem. But also create the canvas by it's self, and in my case I want draw directly using the context provided from I think that it can be better, but I didn't find another soluction until now (P5js doesn't provide the context and doesn't draw like I want) |
I just released a new Version since Ages 😅 |
Please, do something with
componentWillUnmount
to stop the sketch. Without this, the sketch still working and invoking prop functions even though it was destroyed.The text was updated successfully, but these errors were encountered: