Server function dependency injection
What is the best way to DI something such as the db into the handler of a server fn? In remix for example we have
Coming from remix my expectation was:
getLoadContext which allows us to set up dependencies that get passed as the context argument to loaders and actions.Coming from remix my expectation was: