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): prevent infinite render loop on /apps page (#35393)

yyhb351ab00a214
diff --git a/web/app/components/apps/list.tsx b/web/app/components/apps/list.tsx
index 02f12a0c785..3b8784ae453 100644
--- a/web/app/components/apps/list.tsx
+++ b/web/app/components/apps/list.tsx
@@ -185,7 +185,7 @@ const List: FC<Props> = ({
setQuery(prev => ({ ...prev, isCreatedByMe: newValue }))
}, [isCreatedByMe, setQuery])
- const pages = data?.pages ?? []
+ const pages = useMemo(() => data?.pages ?? [], [data?.pages])
const appIds = useMemo(() => {
const ids = new Set<string>()
pages.forEach((page) => {