Skip to content

Cannot properly handle ExpressionChangedAfterItHasBeenCheckedError #213

@SimoneMSR

Description

@SimoneMSR

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions