Seeking Idiomatic Approach for Dynamic Service Customization in Layered Architecture
Hello
if a have a service I usually create it through a layer with a
- bootstrap
- add params to a
is there a more idiomatic way of doing this? Thank you
make effect. What if I want to dynamically customize a service? For example oauthTokenSetManager , but refreshTokenSet should be customized. Right now I see 2 options:- bootstrap
CustomOAuthTokenSetManagerLayer with Layer.unwrapEffect and then just const oauthTokenSetManager = yield* OAuthTokenSetManager - add params to a
make and call it directly from code : const oauthTokenSetManager = yield* makeOAuthTokenSetManager({ refreshTokenSet: ... })is there a more idiomatic way of doing this? Thank you
