I'm working on an application that plays audio clips. The audio clips that are currently playing are stored in the Redux store (you can play more than one clip at once). Everything is working just fine, but I'm wondering what the cleanest way to play/stop the audio would be. (See below JS files for the full source of my store and audio manager file)
Currently, I am triggering the play/stop actions from within the store itself, but this feels kind of wrong:
// store.js
// ...
case 'AUDIO_PLAY':
const audioObject = createAudioObject({