[PR #29331] refactor: migrate log data fetching to react query #32373

Closed
opened 2026-02-21 20:51:17 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langgenius/dify/pull/29331

State: closed
Merged: No


Summary

  • migrate log fetchers to promise-based services and add React Query hooks for log lists/details, annotations, and feedback/annotations mutations
  • replace useSWR in log list/detail/filter components with service hooks, keeping API contracts the same while centralizing cache/invalidations
  • memoize and centralize refresh handlers to align with lint rules without changing behavior

Testing

  • pnpm lint:fix app/components/app/log/list.tsx app/components/app/log/index.tsx app/components/app/log/filter.tsx service/use-log.ts
  • pnpm type-check:tsgo
**Original Pull Request:** https://github.com/langgenius/dify/pull/29331 **State:** closed **Merged:** No --- ## Summary - migrate log fetchers to promise-based services and add React Query hooks for log lists/details, annotations, and feedback/annotations mutations - replace useSWR in log list/detail/filter components with service hooks, keeping API contracts the same while centralizing cache/invalidations - memoize and centralize refresh handlers to align with lint rules without changing behavior ## Testing - pnpm lint:fix app/components/app/log/list.tsx app/components/app/log/index.tsx app/components/app/log/filter.tsx service/use-log.ts - pnpm type-check:tsgo
yindo added the pull-request label 2026-02-21 20:51:17 -05:00
yindo closed this issue 2026-02-21 20:51:17 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#32373