[PR #30077] refactor(web): migrate workflow run history from useSWR to TanStack Query #32669

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

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

State: closed
Merged: Yes


Summary

  • replace workflow run history SWR usage with useWorkflowRunHistory
  • remove SWR fetcher props and tests expectations from workflow headers
  • drop unused workflow service helpers (fetchWorkflowRunHistory, fetchChatRunHistory, updateWorkflowDraftFromDSL) and SWR Fetcher typing in workflow service

Testing

  • pnpm lint:fix (warnings in existing files)
  • pnpm type-check:tsgo
  • pnpm test (hangs; interrupted after ~30s with 0/269 files reported)

Fixes #30073

**Original Pull Request:** https://github.com/langgenius/dify/pull/30077 **State:** closed **Merged:** Yes --- ## Summary - replace workflow run history SWR usage with `useWorkflowRunHistory` - remove SWR fetcher props and tests expectations from workflow headers - drop unused workflow service helpers (`fetchWorkflowRunHistory`, `fetchChatRunHistory`, `updateWorkflowDraftFromDSL`) and SWR Fetcher typing in workflow service ## Testing - `pnpm lint:fix` (warnings in existing files) - `pnpm type-check:tsgo` - `pnpm test` (hangs; interrupted after ~30s with 0/269 files reported) Fixes #30073
yindo added the pull-request label 2026-02-21 20:51:51 -05:00
yindo closed this issue 2026-02-21 20:51:51 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#32669