ionic-audio
ionic-audio copied to clipboard
Cannot properly handle ExpressionChangedAfterItHasBeenCheckedError
I use the onFinish output prop of the audio-track element to update my view. But I get the ExpressionChangedAfterItHasBeenCheckedError
error.
I have tried two solutions to the problem: ChangeDetectorRef
and setTimeout
.
I cannot solve the error by using a ChangeDetectorRef
in my component since I would like to use the progress bar, and the progress bar does not have a onProgress output (is should call the ChangeDetectorRef.markForChange in it).
If I wrap the view update in a setTimeout
call, this other problem happens .
How could I solve?