Fix use of global render/audio managers #14
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. 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.
Originally posted by @tlater in tlaternet/tlaternet-templates#7 (comment)