Hot Reload calling a function?
Unanswered
Masai Lion posted this in #help-forum
Masai LionOP
Have a canvas on the screen, hot reload will not change the contents of the canvas, so is there a way for me to clear the canvas whenever hot reload happens?
1 Reply
Hey there. When a hot reload takes place, components are re-rendered. Meaning: You could use useEffect returning your cleanup callback.
In caae it's not working could you please share how you're creating your canvas?
In caae it's not working could you please share how you're creating your canvas?