dry-rb / dry-transaction

Business transaction DSL
http://dry-rb.org/gems/dry-transaction
MIT License
468 stars 55 forks source link

Use results from previous steps without carrying them forward #126

Closed SpyMachine closed 5 years ago

SpyMachine commented 5 years ago

I have a project where I need to use the result of my first step again a few steps later but don't need it in a few steps in-between.

Is there a way I can somehow hold onto that value and reuse it later so I don't just have to string it along in steps that don't use the variable?

SpyMachine commented 5 years ago

I think I realized dry-transaction is not what I want and have started just using dry-monads with do notation instead.