[PR #32422] fix: improve TanStack Query client setup and fix queryKey bug #33734

Open
opened 2026-02-21 20:53:47 -05:00 by yindo · 0 comments
Owner

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

State: open
Merged: No


Summary

  • Fix double-nested queryKey in usePluginManifestInfo that broke invalidateQueries prefix matching
  • Remove unnecessary useState in TanstackQueryInitializer per Advanced SSR guide
  • Reduce default staleTime from 30min to 5min (aligned with default gcTime)
  • Fix nuqs import path in hydration-server.tsx

Test plan

  • Verify marketplace plugin list loads correctly
  • Verify plugin manifest info cache invalidation works
  • Verify no regressions in query caching behavior
**Original Pull Request:** https://github.com/langgenius/dify/pull/32422 **State:** open **Merged:** No --- ## Summary - Fix double-nested queryKey in `usePluginManifestInfo` that broke `invalidateQueries` prefix matching - Remove unnecessary `useState` in `TanstackQueryInitializer` per [Advanced SSR guide](https://tanstack.com/query/v5/docs/framework/react/guides/advanced-ssr#initial-setup) - Reduce default `staleTime` from 30min to 5min (aligned with default `gcTime`) - Fix `nuqs` import path in `hydration-server.tsx` ## Test plan - [ ] Verify marketplace plugin list loads correctly - [ ] Verify plugin manifest info cache invalidation works - [ ] Verify no regressions in query caching behavior
yindo added the pull-request label 2026-02-21 20:53:47 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#33734