fix: 修复拖拽排序持久化 + 恢复 package.json catalog 引用
- 引入 @dnd-kit/helpers,使用 move() 替代手工 splice 排序逻辑 - 恢复 apps/server/package.json 中所有依赖的 catalog: 引用 - 简化 ORPC client,移除 experimental_defaults,改用 MutationCache - route loaders 改用 fetchQuery 确保数据刷新
This commit is contained in:
@@ -9,7 +9,7 @@ import { SearchBar } from '@/modules/bookmarks/components/SearchBar'
|
||||
|
||||
export const Route = createFileRoute('/_protected/' as never)({
|
||||
loader: async ({ context }: { context: { queryClient: QueryClient } }) => {
|
||||
await context.queryClient.ensureQueryData(orpc.bookmarks.category.list.queryOptions())
|
||||
await context.queryClient.fetchQuery(orpc.bookmarks.category.list.queryOptions())
|
||||
},
|
||||
component: DashboardPage,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user