dify/web/app/components/workflow/panel/debug-and-preview
yyh 91856b09ca
refactor: migrate appDetail from Zustand to TanStack Query
- Remove appDetail and setAppDetail from Zustand store
- Use useAppDetail hook for server state management
- Child components now call useAppDetail(appId) directly via useParams()
- Replace setAppDetail calls with useInvalidateAppDetail for cache invalidation
- Keep only client UI state in Zustand (sidebar, modals)
- Split sidebar initialization useEffect for clearer separation of concerns
- Update test mocks to use TanStack Query pattern
- Fix missing dependencies in use-checklist.ts useMemo/useCallback hooks
2026-01-18 23:07:33 +08:00
..
chat-wrapper.tsx refactor: migrate appDetail from Zustand to TanStack Query 2026-01-18 23:07:33 +08:00
conversation-variable-modal.tsx feat(web): migrate from es-toolkit/compat to native es-toolkit (#30244) (#30246) 2025-12-31 11:13:22 +08:00
empty.tsx refactor(i18n): use JSON with flattened key and namespace (#30114) 2025-12-29 14:52:32 +08:00
hooks.ts refactor(i18n): use JSON with flattened key and namespace (#30114) 2025-12-29 14:52:32 +08:00
index.spec.tsx refactor(web): migrate to Vitest and esm (#29974) 2025-12-22 16:35:22 +08:00
index.tsx feat(web): migrate from es-toolkit/compat to native es-toolkit (#30244) (#30246) 2025-12-31 11:13:22 +08:00
user-input.tsx chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00