Skip to content

feat: migrate chain config subscription to TanStack Query #48

Closed

Description

@Gaubee

背景

基于 PR #43 引入的 TanStack Query 架构,改造链配置订阅。

当前问题

src/services/chain-config/subscription.ts 已有 ETag 缓存机制,但:

  • 手动管理请求逻辑
  • 无自动定期刷新
  • 缓存与 UI 状态分离

改造目标

创建 useChainConfigQuery hook:

  • 支持 ETag / 304 Not Modified
  • refetchInterval: 可配置定期刷新
  • 与现有 store 集成

涉及文件

  • src/services/chain-config/
  • src/pages/settings/chain-config.tsx

关联

Part of TanStack Query migration series (PR #43)

Activity

  1. added 2 commits that reference this issue on Dec 22, 2025
    e6cd71f
    1ba3d06
  2. added a commit that references this issue on Dec 22, 2025
    1860bbc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions