Proyectos de Subversion LeadersLinked - SPA

Rev

Rev 3658 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 3658 Rev 3660
Línea 33... Línea 33...
33
        onError(err);
33
        onError(err);
34
      } finally {
34
      } finally {
35
        setLoading(false);
35
        setLoading(false);
36
      }
36
      }
37
    },
37
    },
38
    [apiFunction, onSuccess, onError]
38
    [apiFunction]
39
  );
39
  );
Línea 40... Línea 40...
40
 
40
 
41
  useEffect(() => {
41
  useEffect(() => {
42
    if (autoFetch) {
42
    if (autoFetch) {
43
      execute(...autoFetchArgs);
43
      execute(...autoFetchArgs);
44
    }
44
    }
Línea 45... Línea 45...
45
  }, [execute, autoFetch, JSON.stringify(autoFetchArgs)]);
45
  }, [autoFetch, JSON.stringify(autoFetchArgs)]);
46
 
46