Closed enderortak closed 6 years ago
Hi @enderortak!
<ProgressBar />
should call onSeekEnd()
with a value of null
if it was triggered from componentWillUnmount()
. Have a look and see if that helps.
This should probably only be fired if the user is currently dragging the slider value.
@alexanderwallin thank you, checking the value will definitely help!
ProgressBar
componentWillUnmount
firesonSeekEnd
and this is giving me trouble on the below scenario:Before starting seek, I pause the playback and restart it if it was playing before the seek.
To handle unmounting of the component at the middle of a playback, I call my exit handler below:
This works like that:
componentWillUnmount
=>onSeekEnd
is calledsetState
function is async, playing state is still true here)Is there a way to detect if
onSeekEnd
is fired bycomponentWillUnmount
? Or any other suggestions are welcomed.