Angular 19.2's httpResource: DON'T Do This! 🚨 (Common Mistake)
Автор: Code with Ahsan
Загружено: 2025-03-06
Просмотров: 3541
In Angular 19.2, the introduction of httpResource is something that should be handled carefully. It is being understood incorrectly throughout the community that you can make POST, PUT, PATCH calls with Angular with httpResource. I'll show you one common practice that can get you in trouble for sure.
👉🏽 Code repo for this video:
https://github.com/AhsanAyaz/ng-http-...
📖 Angular Signals Book:
https://codewithahsan.dev/books
Join 1600+ coding enthusiasts to keep yourself up to date with AI, Angular, and Web Development:
https://blog.codewithahsan.dev
Remember to smash that like and subscribe button.
Timeline:
0:00 - Introduction
0:25 - Angular 19.2 release (introduces httpResource)
0:51 - ng update from 19.2-rc.0 to 19.2
1:44 - What we're going to implement
2:24 - Adding new todo using httpResource (duh)
10:30 - Fixing UI edge cases with adding todos
11:06 - The moment you realized things are getting BAD
11:30 - Using parse to transform data (and react to it) - pls no
15:02 - UI issue again, new todo appears everywhere
16:44 - Another edge case that we need to work around
17:45 - Conclusion - Why using httpResource for mutation is BAD
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: