mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-07-29 16:42:00 +08:00
12 lines
423 B
TypeScript
12 lines
423 B
TypeScript
import { getOneNamespaceEffectsLoading } from '@/utils/storeUtil';
|
|
import { useSelector } from 'umi';
|
|
|
|
// Get the loading status of given effects under a certain namespace
|
|
export const useOneNamespaceEffectsLoading = (
|
|
namespace: string,
|
|
effectNames: Array<string>,
|
|
) => {
|
|
const effects = useSelector((state: any) => state.loading.effects);
|
|
return getOneNamespaceEffectsLoading(namespace, effects, effectNames);
|
|
};
|