Skip to content

Commit fac5061

Browse files
author
Ramin
committed
fix: disable eslint warning for api
1 parent 38aa639 commit fac5061

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/hooks/use-api.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable react-hooks/exhaustive-deps */
12
import { useSelector } from 'react-redux';
23
import { useEffect, useMemo, useState } from 'react';
34

@@ -110,7 +111,7 @@ export const useAPI = ({
110111
if (requestOnLoad) {
111112
request(requestDataOnLoad);
112113
}
113-
}, memoizedDependenciesOnLoad);
114+
}, [memoizedDependenciesOnLoad]);
114115

115116
const cancelRequest = () => {
116117
apiMethod?.cancel?.();

src/hooks/use-page-data.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable react-hooks/exhaustive-deps */
12
import { noop } from 'lodash';
23
import { sendLog } from 'services/log';
34
import { useEffect, useState } from 'react';

0 commit comments

Comments
 (0)