refactor: 移除 TanStack Query 上下文初始化逻辑

- 删除 TanStack Query 上下文的初始化逻辑
- 移除对 context 模块的导出,仅保留对 devtools 模块的导出。
- 移除对旧查询上下文的依赖,直接创建并注入新的 QueryClient 实例到路由上下文中,并更新 SSR 集成配置以使用新实例。
This commit is contained in:
2026-01-18 04:07:53 +08:00
parent effb7f16c7
commit 5c55644c57
3 changed files with 4 additions and 13 deletions

View File

@@ -1,8 +0,0 @@
import { QueryClient } from '@tanstack/react-query'
export function getContext() {
const queryClient = new QueryClient()
return {
queryClient,
}
}

View File

@@ -1,2 +1 @@
export * from './context'
export * from './devtools'