Effect CommunityEC
Effect Community15mo ago
37 replies
Jambudipa

How to Use `MainLive` in `appRouter`

So what are my options for using a layer here?
export const MainLive = SearchServiceLive.pipe(Layer.provide(LanguageLive));

export const appRouter = RpcRouter.make(
  Rpc.effect(Search, (request) => {
    // How do I use MainLive here? 🤷🏻 
  })
);
Was this page helpful?