Best Practice for Conditionally Providing a Service in Effect Typescript

What is the best practice for conditionally providing a service? Ie. program.pipe(shouldProvide ? Effect.provide(service) : (e) => e)
Was this page helpful?