⚠️ #Angular / RxJs bad practice alert: nesting subscriptions Nesting subscriptions is considered a bad practice due to: - decreased readability - the need to handle each subscription one by one - breaks reactive flow
Michael Be
@michaelbe812.bsky.social
💻 Freelancer 🅰 Angular focused 💻 Passionate fullstack software developer 🌎 Love travelling ☕ Coffee-lover 👨👩👧 Father https://www.berger-engineering.io
@angular.dev.web.brid.gy 19 is around the corner 👀 Lots of SSR improvements and new signal-utilities are coming: linkedSignal, resource and rxResource
What the heck does unicast mean in terms of #RxJs observable? Observables are sources of values/events. They somehow need to produce them. Producing a value means executing a so called producer function. A producer function is all that describes creating the value this particular source can emit.
I want to present a more sophisticated example on how to create a mini-redux / #ngrx powered by scan. Please note that it is very very simplified just to point out how powerful scan is. Link to stackblitz in first comment 👇 @angular.dev.web.brid.gy