Any state change causes render loop to crash

I am experimenting with The magical world of Particles with React Three Fiber and Shaders - The Blog of Maxime Heckel and I reproduced it in typescript, and no other change. I have a expanded state which changes on a mouseover state of another html div over the canvas. Whenever the state changes, the canvas crashes to a single point.