forked from imbytecat/fullstack-starter
refactor: 移除 todos 路由预加载逻辑以优化性能
- 移除 todos 路由的预加载逻辑以优化性能和简化代码
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user