We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38aa639 commit fac5061Copy full SHA for fac5061
src/hooks/use-api.ts
@@ -1,3 +1,4 @@
1
+/* eslint-disable react-hooks/exhaustive-deps */
2
import { useSelector } from 'react-redux';
3
import { useEffect, useMemo, useState } from 'react';
4
@@ -110,7 +111,7 @@ export const useAPI = ({
110
111
if (requestOnLoad) {
112
request(requestDataOnLoad);
113
}
- }, memoizedDependenciesOnLoad);
114
+ }, [memoizedDependenciesOnLoad]);
115
116
const cancelRequest = () => {
117
apiMethod?.cancel?.();
src/hooks/use-page-data.ts
import { noop } from 'lodash';
import { sendLog } from 'services/log';
import { useEffect, useState } from 'react';
0 commit comments