I am working on the Spartacus project and I am using detectchanges()
method to update the view in angular 10. The code reviewer commented that it causes leads to severe performance issue instead of that they suggesting to use observable.
What is the best practice?