You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using react router and when I navigate back the audio keep playing
I tried this in the
stopPlaying() {
ReactDOM.findDOMNode(this.state.autoplayref).dispatchEvent(new Event('pause'));
}
and then
componentWillUnmount() {
this.props.shuirimprops.stopPlaying();
}
but not working. I am doing the same thing for playing and pausing and it works fine I think the
ref is alread gone by the time the async method excutes
The text was updated successfully, but these errors were encountered:
I am using react router and when I navigate back the audio keep playing
I tried this in the
stopPlaying() {
ReactDOM.findDOMNode(this.state.autoplayref).dispatchEvent(new Event('pause'));
}
and then
componentWillUnmount() {
this.props.shuirimprops.stopPlaying();
}
but not working. I am doing the same thing for playing and pausing and it works fine I think the
ref is alread gone by the time the async method excutes
The text was updated successfully, but these errors were encountered: