Does anyone have a good pattern they've implemented, for fetching data ahead of time before the transaction? Getting into some very slow functions as we reuse logic, and curious if there is a great way to solve this with Effect. Very open to changing how we write code.
Example:
UpdateShift function with lots of business logic
TransferShift function built over updateshift, lots of it's own logic on top of it.
Planning Session Publish function built over tons of functions like TransferShift, that can have 30+ moves ready to be applied. If the 29th move fails to be processed, all moves need to fail.