您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

1234567891011
  1. import { getOneNamespaceEffectsLoading } from '@/utils/storeUtil';
  2. import { useSelector } from 'umi';
  3. // Get the loading status of given effects under a certain namespace
  4. export const useOneNamespaceEffectsLoading = (
  5. namespace: string,
  6. effectNames: Array<string>,
  7. ) => {
  8. const effects = useSelector((state: any) => state.loading.effects);
  9. return getOneNamespaceEffectsLoading(namespace, effects, effectNames);
  10. };