This PR fixes an issue that would happen when using the load lifecycle function of a sketch. If a sketch is already running and load exists and takes some time, the previous render loop would be called even after destroying correctly the preview, which could lead to various issues.
This PR ensures that the sketch exists before calling the _renderSketch function.
This PR fixes an issue that would happen when using the
load
lifecycle function of a sketch. If a sketch is already running andload
exists and takes some time, the previous render loop would be called even after destroying correctly the preview, which could lead to various issues.This PR ensures that the sketch exists before calling the
_renderSketch
function.