Currently, I am attempting to add 2 pipe operators into a pipe function, where the first one should be applied based on a condition, while the second one will always be applied.
This is how it looks without the condition:
getData(query).pipe(setLoding(this.store),tap(//some actions here...))
The setLoading function is an Akita pipe that I would like to apply only if a certain boolean condition is met.
I attempted to use rxjs's iif()
, but encountered an error because setLoading
does not match the type of SubscribableOrPromise
.
Does anyone have alternative suggestions?