Conditionally Execute an Effect in a Pipe Using `Effect.when`
I am trying to execute a certain operation based on a condition, I would like this to be reflected in the control flow but I'm not sure how
This could be done with
But when scanning vertically the pipe, I do not see that the
If I add
Effect.when can be used in the pipeThis could be done with
But when scanning vertically the pipe, I do not see that the
Effect.tap is conditioned by flag === trueIf I add
Effect.when(() => flag) in the main pipe, it seems the rest does not necessarily run.