What are the downsides to moving these two clients outside the component? Does it break hot reloading or something? E.g.
const queryClient = new QueryClient()const trpcClient = trpc.createClient({ /* ... */ })export function App() { // ...
const queryClient = new QueryClient()const trpcClient = trpc.createClient({ /* ... */ })export function App() { // ...
Solution
I'm so goddamn stupid, i literally asked the same question this June already: No Access And also they even explain this in the docs below the code snippet... I AM INCAPABLE OF READING