Chained an Angular resource with chain() and got a 404 upstream?
The downstream error() just says "Dependency error". The real HTTP error is in .cause.
Unwrap it in a computed, and check for HttpErrorResponse first. It isn't an Error at runtime
Full article in the first comment
Angular's httpResource() re-sends the request when a signal in its URL callback changes. No subscribe, no switchMap.
parse validates the response. defaultValue keeps value() defined while loading.
Four patterns in the reply.
PageSpeed Insights mobile lab run on my blog home, Nov 5: 100 for Performance, Accessibility, Best Practices and SEO.
SSR with hydration, zoneless OnPush, lazy routes, NgOptimizedImage priority on the cover.
One run. Scores vary.
A closer look inside my blog's Three.js game: Miw's lantern calming a mummy for a Key of Life, the title screen, a sealed scroll that holds an article, and Anubis's balance at Giza.
Fan-made, not affiliated with the GEM. Link in the reply
alidevhub.com/?utm_source=x&…