From 09870c86f5630ecdeb64ee601b7798fcac85fa8a Mon Sep 17 00:00:00 2001 From: imbytecat Date: Sun, 18 Jan 2026 05:08:35 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E7=A7=BB=E9=99=A4=20todos=20?= =?UTF-8?q?=E8=B7=AF=E7=94=B1=E9=A2=84=E5=8A=A0=E8=BD=BD=E9=80=BB=E8=BE=91?= =?UTF-8?q?=E4=BB=A5=E4=BC=98=E5=8C=96=E6=80=A7=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除 todos 路由的预加载逻辑以优化性能和简化代码 --- src/routes/todos.tsx | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/routes/todos.tsx b/src/routes/todos.tsx index 6414551..1b27c35 100644 --- a/src/routes/todos.tsx +++ b/src/routes/todos.tsx @@ -6,9 +6,6 @@ import { orpc } from '@/orpc' export const Route = createFileRoute('/todos')({ component: Todos, - loader: async ({ context }) => { - await context.queryClient.prefetchQuery(orpc.todo.list.queryOptions()) - }, }) function Todos() {