refactor: 移除 todos 路由预加载逻辑以优化性能

- 移除 todos 路由的预加载逻辑以优化性能和简化代码
This commit is contained in:
2026-01-18 05:08:35 +08:00
parent 2cadbb96f7
commit 09870c86f5

View File

@@ -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() {