From f93bf131ab2c3cbcf6f3ba6a1f985ffb5d1c8ab9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9D=9E=E6=B3=95=E6=93=8D=E4=BD=9C?= Date: Fri, 24 Jan 2025 18:43:56 +0800 Subject: [PATCH] fix(1.0): explore market page empty (#13017) --- web/app/components/plugins/marketplace/context.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/app/components/plugins/marketplace/context.tsx b/web/app/components/plugins/marketplace/context.tsx index e484f1e275..cba3835513 100644 --- a/web/app/components/plugins/marketplace/context.tsx +++ b/web/app/components/plugins/marketplace/context.tsx @@ -239,9 +239,11 @@ export const MarketplaceContextProvider = ({ activePluginTypeRef.current = type setPage(1) pageRef.current = 1 + }, []) + useEffect(() => { handleQuery() - }, [handleQuery]) + }, [activePluginType, handleQuery]) const handleSortChange = useCallback((sort: PluginsSort) => { setSort(sort)