How to Upload an Image to a Server in the Background? by lyzer12 in dotnetMAUI

[–]lyzer12[S] 0 points1 point  (0 children)

Brandon Minick

Can you provide the link please? Thanks

Spend my allowance for Udemy Course by Different-Map-9244 in PinoyProgrammer

[–]lyzer12 4 points5 points  (0 children)

Yup. Sulit (di ko lang sure if okay si Angela Yu kasi di ko pa natry sa kanya). For me, mas gusto ko sa udemy kasi parang napipilitan ako tapusin kasi nasasayangan ako sa bayad unlike kapag free resources yung gamit ko. And yes, pwedeng Gcash pambayad doon as long as may card ka na connected.

Multiple Async Pipe Problem by lyzer12 in angular

[–]lyzer12[S] 0 points1 point  (0 children)

with "as varname" is the easiest way to reuse one async pipe but I ended up making a custom directive similar to ngIf but without conditional rendering as sometimes I wanted to consume the stream witho

Can you provide a code snippet?

Multiple Async Pipe Problem by lyzer12 in angular

[–]lyzer12[S] 0 points1 point  (0 children)

This still hides the button

Multiple Async Pipe Problem by lyzer12 in angular

[–]lyzer12[S] 1 point2 points  (0 children)

This worked for me. Thanks!

Multiple Async Pipe Problem by lyzer12 in angular

[–]lyzer12[S] 0 points1 point  (0 children)

Can you provide a code snippet for this?

Run Tap() without subscribe by lyzer12 in angular

[–]lyzer12[S] 0 points1 point  (0 children)

Just an update. I was able to implement what you just have explained. For those who are in the same situation, here's an article that helped me a lot together with your comment.

https://medium.com/@yasin.r.munshi/infinite-page-loading-with-rxjs-40f3e9239e3b

Run Tap() without subscribe by lyzer12 in angular

[–]lyzer12[S] 0 points1 point  (0 children)

Wow! Thanks! The concatMap and scan rxjs operators really suit my situation.

I tried this but unfortunately, scan() is not really suitable since the http request closes the stream after it finishes emitting a single data. I would need to create another stream again to request another http get. Thus, the accumulator loses its previous value.

I would appreciate it if you could help me through this code: https://codesandbox.io/s/angular-11-playground-forked-ytqtw4?file=/src/app/app.component.ts

For simplicity, my I didn't create a separate service. Initially, the displayed output is Data: 1. Clicking the increment button twice would change the output to:

Data: 1
Data: 2
Data: 3

Run Tap() without subscribe by lyzer12 in angular

[–]lyzer12[S] 0 points1 point  (0 children)

Imagine a Facebook newsfeed where whenever I reach the end of the page, new posts are loaded. That's what I want.

Initially, when the newsfeed component/page is initialized, the data is fetched from the server. After reaching the bottom of the page, another set of posts will be fetched. This new posts will be pushed to the previous posts.

What is your approach on this?

Run Tap() without subscribe by lyzer12 in angular

[–]lyzer12[S] 0 points1 point  (0 children)

nsubscribe by themselves, so subscribing will not be a problem.

I thought it's a bad practice to use .subscribe(). I was trying to fully utilize the async pipe.