WATCH NEXT: Angular Interview Questions and Answers - Dominate Your Next Interview - kzbin.info/www/bejne/a3LCin6ii7yAhtEsi=2DCn7yspEAAJ2H6l
@jurybalikov70636 ай бұрын
As always, happy to see new videos. This will be a helpful video to anyone trying to fix this error, but I was expecting you to mention in the end of the video that all of these fixes are, well, fixes. And in reality, if you are running into this error, you are likely writing some anti-pattern code and should refactor it. Most likely, get rid of, as you called it, "nasty mutations" and side effects.
@MonsterlessonsAcademy5 ай бұрын
I agree, good architecture is important, but typically people just stumble across this error and don't understand at all what is the problem. Refactoring would be the next step.
@sachin.tandon5 ай бұрын
Great videos, I love them. Your explanations are so clear...even for a Cambridge / M.I.T. Engineer. For the above problem, there is a 4th way. I used to get it a lot and used the cdr and set Timeout solutions. Using signals / computed signals, viewChild, etc, overcomes the problem entirely.
@MonsterlessonsAcademy5 ай бұрын
Yeap. Everything will boil down to signals.
@deadlyecho6 ай бұрын
You can also use ngzone run... but for this video, its better to refactor the code... I would say this video is just for learning purposes...
@MonsterlessonsAcademy5 ай бұрын
Yeap
@akuoko_konadu6 ай бұрын
Thanks, for the video, I don't do manual change detection, mostly because I can forget to rerun CD, so I just stick with delay and setTimeout. I don't know but is there a way signals will fix this issue, cause I have heard that signals does not depend on angular change detection
@MonsterlessonsAcademy5 ай бұрын
They will. The future is that we don't need the whole traversing of components to make a component change detection and signals are going in that way.
@code_with_rasta6 ай бұрын
Thank you for this 😊
@MonsterlessonsAcademy5 ай бұрын
You're welcome 😊
@mohamedyahyacheikhmaazouz16506 ай бұрын
Can you please make a video about how to get started with Next.js? I am a React.js developer, and I want to take my skills to the next level.
@MonsterlessonsAcademy5 ай бұрын
Unfortunately I don't have any good videos about Next.js for beginners.
@MrKOHKyPEHT6 ай бұрын
Also we can use "scheduler" instead "of"
@MonsterlessonsAcademy5 ай бұрын
Yeap
@anutaNYC5 ай бұрын
You can write afterviewinit without implementation AfterViewInit?!!
@MonsterlessonsAcademy5 ай бұрын
implementation will just be validated by typescript. you can skip ngOnInit in the same way
@vandameh.a22355 ай бұрын
also you can do Promise.resolve().then() to solve this error, basically the same xd
@MonsterlessonsAcademy5 ай бұрын
Yeap
@puneetarora17146 ай бұрын
I faced this error a few days back and boy it was a h**l to debug this and fix it in my unit tests