Open zip-fa opened 5 months ago
Hi, I spotted a few things here:
tap
instead of prepare
, as it takes a TapObserver
that has a subscribe
notification callback that can be used exactly like your home made operator(source: Observable<T>) => Observable<T>
you can type it MonoTypeOperatorFunction<T>
and as the return type is already well set, you do not need to repeat yourself in the returns like return (source: Observable<T>): Observable<T> => defer(() => {
=> this is enough: return (source) => defer(() => {
triggerValue
is not really clear, what is it for?About the indicateLoading
itself, I would personnaly not use it as I code declaratively and in that case there are better options for that but it may be really well received by many others so why not
Hi. I often use this simple pipe in my projects to indicate loading state (where i don't need to use
*-query
or*store
libraries):usage: