mirror of
https://github.com/langgenius/dify.git
synced 2026-05-13 00:33:37 +08:00
fix(web): prevent infinite render loop on /apps page (#35393)
This commit is contained in:
parent
059d605a6d
commit
b351ab00a2
@ -185,7 +185,7 @@ const List: FC<Props> = ({
|
|||||||
setQuery(prev => ({ ...prev, isCreatedByMe: newValue }))
|
setQuery(prev => ({ ...prev, isCreatedByMe: newValue }))
|
||||||
}, [isCreatedByMe, setQuery])
|
}, [isCreatedByMe, setQuery])
|
||||||
|
|
||||||
const pages = data?.pages ?? []
|
const pages = useMemo(() => data?.pages ?? [], [data?.pages])
|
||||||
const appIds = useMemo(() => {
|
const appIds = useMemo(() => {
|
||||||
const ids = new Set<string>()
|
const ids = new Set<string>()
|
||||||
pages.forEach((page) => {
|
pages.forEach((page) => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user