seven
seven5w ago

Is it ok to have 2 clients in one app

Hi, as for the topic, is it okay to have a standalone client and a react-query integration? I have a trpc standalone backend in a monorepo with nextjs frontend, so far I've been calling my backend only from server components, now i think i will need react query functionalities in the client components, is it ok to have both standlone client and react query intefgration or is there a better approach?
2 Replies
Atul
Atul5w ago
I've an app in production with two tRPC clients in one app, one with httpLink and another one with wsLink and seems to work without any issues.
seven
seven4w ago
super, thank you!