Skip to content

feat: migrate notifications to TanStack Query #49

Closed

Description

@Gaubee

背景

基于 PR #43 引入的 TanStack Query 架构,改造通知列表。

当前问题

src/pages/notifications/index.tsx 使用 useEffect 获取数据。

改造目标

创建 useNotificationsQuery hook:

  • 支持分页 (useInfiniteQuery)
  • 未读标记状态
  • 实时更新支持

涉及文件

  • src/pages/notifications/index.tsx

关联

Part of TanStack Query migration series (PR #43)

Activity

  1. Gaubee commented on Dec 22, 2025

    @Gaubee
    ContributorAuthor

    通知使用本地 notificationStore,不是从服务器获取数据,不需要 TanStack Query 改造。

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