Upgrading from 2.1 to 3.x, Effect.unit removed
Hey, I have a project using effect 2.1, with an
1. creates a database and returns it
2. uses that database to insert a record into another database
3. if step 2 fails, it executes a function that destroys the database
Upon upgrading to latest (3.1), I can see that
My question is, what's the appropriate return for the
gist with all the code & layers: https://gist.github.com/kylekz/54a600a4918e1fcc8c5a6d8e5d9ffacf
I also see that
acquireUseRelease effect that essentially performed a rollback if a promise failed:1. creates a database and returns it
2. uses that database to insert a record into another database
3. if step 2 fails, it executes a function that destroys the database
Upon upgrading to latest (3.1), I can see that
Effect.unit doesn't exist anymore. I've refactored my code to use layers/DI:My question is, what's the appropriate return for the
release now? I assumed it was the success path but I get an error as such:gist with all the code & layers: https://gist.github.com/kylekz/54a600a4918e1fcc8c5a6d8e5d9ffacf
I also see that
acquireUseRelease is no longer detailed anywhere in the docs, not sure if that's deliberate or not?