Michael Be's Avatar

Michael Be

@michaelbe812

๐Ÿ’ป Freelancer ๐Ÿ…ฐ Angular focused ๐Ÿ’ป Passionate fullstack software developer ๐ŸŒŽ Love travelling โ˜• Coffee-lover ๐Ÿ‘จโ€๐Ÿ‘ฉโ€๐Ÿ‘ง Father https://www.berger-engineering.io

73
Followers
62
Following
9
Posts
04.11.2024
Joined
Posts Following

Latest posts by Michael Be @michaelbe812

Why do you think that nesting subscriptions is a bad practice?

How to do it better? ๐Ÿ’ก
See second picture :)

18.12.2024 13:50 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Post image Post image

โš ๏ธ #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

18.12.2024 13:50 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0
Post image

@angular.dev.web.brid.gy 19 is around the corner ๐Ÿ‘€
Lots of SSR improvements and new signal-utilities are coming: linkedSignal, resource and rxResource

08.11.2024 05:30 ๐Ÿ‘ 4 ๐Ÿ” 1 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

Hi, nice idea. Please add me :)

04.11.2024 16:36 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

The last 2 sentences describe the behaviour of unicast.
Btw. Now it should also be obvious why you see multiple network requests when you are certainly sure that you only trigger a http-request once ๐Ÿ˜‰

04.11.2024 09:24 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

I can be something like of(1) or even a http-request.
Whenever someone subscribes the producer function is executed. This happens for every subscriber.

04.11.2024 09:24 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0
unicasted observable

unicasted observable

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.

04.11.2024 09:24 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0
Preview
scan-redux (forked) - StackBlitz An angular-cli project based on @angular/animations, @angular/common, @angular/compiler, @angular/core, @angular/forms, @angular/platform-browser, @angular/platform-browser-dynamic, @angular/router, c...

Stackblitz: stackblitz.com/edit/stackbl...

04.11.2024 07:23 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
scan-operator redux code example

scan-operator redux code example

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

04.11.2024 07:22 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0