Server Function Info Not Found Error in Cloudflare Worker with fetchQuery
Any idea why this might be happening?
Could there be an issue with this implementation?
export const Route = createFileRoute("/demo/trpc-todo")({
component: TRPCTodos,
loader: async ({ context }) => {
try {
const todos = await context.queryClient.fetchQuery(
context.trpc.todos.list.queryOptions()
);
return todos;
} catch (error) {
console.error(error);
}
},
});