Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix(web): disable cache for trigger dynamic select options (#30161)

Maries0c4233e7df51
diff --git a/web/service/use-triggers.ts b/web/service/use-triggers.ts
index 6036f5ab343..24717cc50b4 100644
--- a/web/service/use-triggers.ts
+++ b/web/service/use-triggers.ts
@@ -371,6 +371,8 @@ export const useTriggerPluginDynamicOptions = (payload: {
},
enabled: enabled && !!payload.plugin_id && !!payload.provider && !!payload.action && !!payload.parameter && !!payload.credential_id,
retry: 0,
+ staleTime: 0,
+ gcTime: 0,
})
}