mirror of
https://github.com/langgenius/dify.git
synced 2026-01-19 11:45:05 +08:00
chore: handle refetch after created
This commit is contained in:
@ -106,9 +106,10 @@ const List: FC<Props> = ({
|
|||||||
} = useInfiniteAppList(appListQueryParams, { enabled: !isCurrentWorkspaceDatasetOperator })
|
} = useInfiniteAppList(appListQueryParams, { enabled: !isCurrentWorkspaceDatasetOperator })
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (controlRefreshList > 0)
|
if (controlRefreshList > 0) {
|
||||||
console.log('mute')
|
refetch()
|
||||||
// mutate()
|
}
|
||||||
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
}, [controlRefreshList])
|
}, [controlRefreshList])
|
||||||
|
|
||||||
const anchorRef = useRef<HTMLDivElement>(null)
|
const anchorRef = useRef<HTMLDivElement>(null)
|
||||||
|
|||||||
Reference in New Issue
Block a user