Dynamically Overwriting Config Options in Effect Typescript
I have this Config Tag
and I populate it using a
At runtime I want to have the option to overwrite / add / remove some of the options. Or to make it simpler, assume it is a boolean flag that I should be able to overwrite dynamically (for some effects) while most of them are using the default config.
Sort of like
What's the best option here? Ideally it would be something like
Is there an example I can look into? Is this done by using
and I populate it using a
Layer.effect that reads from ENV using the Config api.At runtime I want to have the option to overwrite / add / remove some of the options. Or to make it simpler, assume it is a boolean flag that I should be able to overwrite dynamically (for some effects) while most of them are using the default config.
Sort of like
HttpClient.withTracerPropagation(false). Where I can disable some config for certain effects using HttpClient.What's the best option here? Ideally it would be something like
MyServiceConfig.withBooleanFlag(false).Is there an example I can look into? Is this done by using
FiberRefs?