Комментарии:
I would love to start a discussion about the usage of services in the template. I am probably old school and would argue that everything injected should be private and therefor not directly accessible in the template
About your video - I really like the thoughts and approach you've taken and would currently also tend to go that route
I like this approach that you mention :)
ОтветитьThis approach is nice. I like it
ОтветитьNice approach, clever 👍
ОтветитьYour solution is a little bit like a "Result" in Rust. Looks nice.
Ответитьwhy did you switch to neovim?
ОтветитьAnd what about a retry-button for example. After it the rxjs-stream (getFromApiError()) errors, isn't it "dead"? how would you go about implementing a retry which results are delivered in the same rxjs stream?
ОтветитьHow to manage with this package the case of different error management in a stream who includes multiple call trough switchMap operator ? Like if something, stop the calls and display a banner, if something else retryWhen operator ?
ОтветитьYou are a legend, mate. Any plans for a promotion of Ionic Start? Help your fellow Brazilians lol
ОтветитьYou lost me at of(null)...
ОтветитьGetting kind of async/await/promise handling vibe from this. :)
ОтветитьClean intuitive approach. I see this becoming a common practice.
ОтветитьAlways qualitative and well explained stuff ! Thanks a lot !
ОтветитьLove this approach!
ОтветитьIsn't there a drawback to this approach if you want to show the data and the error at the same time? For example if you have already fetched your data once and then an error occurs the second you fetch your data, value will be undefined. Therefore you won't be able to display your data and the error simultaneously.
ОтветитьThis is a good video and nice explanation.
Creating a NPM package for 20 lines of code that can easily be copy-pasted is everything that's wrong with the JS ecosystem though :D
I love the approach! Its basically the Either<Success, Error> pattern in a reactive way :) the helper function should make writing stuff like this much easier.
ОтветитьVery nice way of keeping things reactive as they evolve ! thank you !
ОтветитьPretty clean pattern I think ! Nice catch 🙂
ОтветитьI like the approach! Very clean and straight forward. Thanks! Do you know if we need to unsubscribe a long running observable inside a toSignal function?
ОтветитьThis is a pattern that I have been using for quite some time and it's pretty handy. You can also use materialize operator instead of map + catchError.
ОтветитьI think it's a neat approach. Will test today. 😊
Ответитьyur method do not work with update, mutate etc. it is fail
ОтветитьI used similar structures before signaljs was a thing. Not for signaljs but more for fellow developers having a hard time reading rxjs pipes.
ОтветитьNice Joshua! Thanks
ОтветитьClean approach!. I want to ask how do you handle for mutation request that can be called multiple times using signal?
ОтветитьLike your video. Good approach but one thing is not clear if I have to pass ToSignalOptions like initialValue, requireSync etc. this is not possible with your utility function
Ответить