This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Consider moving hoisted dependencies into the controller actions #210
Labels
breaking
This is a breaking change
improvement
New feature or request
needs decision
Need to think more and decide
Right now you're able to do something like this:
And Bud is smart enough to initialize
*postgres.Client
once on boot and*session.Session
per request. This was done to keep the function signature of the actions clean and focused on the inputs and outputs.Suppose Load was an expensive operation though. It would be very surprising to learn that Load is called every request. I'm now leaning towards something like this:
And then separating inputs from dependencies.
See for more discussion: #185 (comment)
The text was updated successfully, but these errors were encountered: