react-voice-components
react-voice-components copied to clipboard
'end' event listener cannot detect empty string
If I pass "" for the props.text, speak() runs setting state.started and state.playing to true, but state.started never gets set to false by the 'end' event listener.
This means that when I pass in new props, they are not detected under the current logic defined within componentWillReceiveProps.