Skip to content

feat: migrate Staking queries to TanStack Query #47

Closed

Description

@Gaubee

背景

基于 PR #43 引入的 TanStack Query 架构,改造 Staking 相关数据获取。

当前问题

Staking 页面多处使用 useEffect 手动获取数据:

  • staking-overview-panel.tsx - 质押池列表
  • staking-record-list.tsx - 质押记录
  • mint-form.tsx / burn-form.tsx - 余额查询

改造目标

创建以下 Query hooks:

  1. useStakingOverviewQuery - 质押池列表
  2. useStakingRecordsQuery - 质押记录(支持分页)
  3. useStakingBalanceQuery - 质押余额

涉及文件

  • src/pages/staking/components/*.tsx
  • src/services/staking/

关联

Part of TanStack Query migration series (PR #43)

Activity

  1. added 2 commits that reference this issue on Dec 22, 2025
    a4c3ad5
    94c5d58
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