fix(1.0): explore market page empty (#13017)

pull/13050/head
非法操作 1 year ago committed by GitHub
parent ef1f429437
commit f93bf131ab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -239,9 +239,11 @@ export const MarketplaceContextProvider = ({
activePluginTypeRef.current = type activePluginTypeRef.current = type
setPage(1) setPage(1)
pageRef.current = 1 pageRef.current = 1
}, [])
useEffect(() => {
handleQuery() handleQuery()
}, [handleQuery]) }, [activePluginType, handleQuery])
const handleSortChange = useCallback((sort: PluginsSort) => { const handleSortChange = useCallback((sort: PluginsSort) => {
setSort(sort) setSort(sort)

Loading…
Cancel
Save