Fix use of global render/audio managers #7
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
Currently, the music player and webgl renderers are implemented as global variables with a whole bunch of internal state.
They probably need to stay that way, but their interactions with react are unfortunate; specifically, react's
useEffect
is worked around a lot to get the visualizer to render, and at the same time some of redux' side-effect-freeness is violated in order to update the audio manager's source.I need to find a better way of managing these.