seven
seven4mo 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
Atul4mo 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
sevenOP4mo ago
super, thank you!