mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-01 05:23:47 +08:00
### What problem does this PR solve? feat: change all file names to lowercase #1574 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
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);
|
|
};
|