Donald Monpas wrote:
Thank you for the reply Andrew.
In my post above I have a screenshot of that dependency where P5_sound is dependent on P5_min.

Apologies for missing that...
It's possible that you might need to consider turning your P5 stuff into one or more React components to make this work. I think part of the issue is that you're wanting to use a JS library that draws on the screen with another library that is abstracting and controlling the rendering lifecycle, and then also dealing with dependent libraries to boot.
Any chance you can share a small OML of the working version with the timeout function? With that as a starting point, I can try some ideas to see if there's an easier (and less janky) way.