ionic-audio icon indicating copy to clipboard operation
ionic-audio copied to clipboard

Cannot properly handle ExpressionChangedAfterItHasBeenCheckedError

Open SimoneMSR opened this issue 5 years ago • 0 comments

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?

SimoneMSR avatar Jun 25 '19 11:06 SimoneMSR