Effect CommunityEC
Effect Community3y ago
73 replies
bste

Sharing Immutable Values Between Effects

Is it possible to share an immutable value between effects? I've got an effect-http service that receives a JWT token in the request headers, down the call chain I need to re-use the JWT to call another external API but didn't fancy adding it to every function as an arg. I'd thought of using Ref but I don't want to allow the value to be changed.
Was this page helpful?