Skip to content

Commit 12487a3

Browse files
authored
Merge pull request #427 from aldabil21/remote-fetch-deps
Remove unneeded deps from remote fetch method
2 parents 7793ed1 + 64158c0 commit 12487a3

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

eslint.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import react from "eslint-plugin-react";
22
import tseslint, { configs as tseslintConfigs } from "typescript-eslint";
33
import globals from "globals";
44
import js from "@eslint/js";
5-
import reactHooks from "eslint-plugin-react-hooks";
5+
import * as reactHooks from "eslint-plugin-react-hooks";
66
import reactRefresh from "eslint-plugin-react-refresh";
77
import pluginImport from "eslint-plugin-import";
88
import pluginJsxA11y from "eslint-plugin-jsx-a11y";

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
"eslint-plugin-jsx-a11y": "^6.10.2",
8080
"eslint-plugin-promise": "^7.2.1",
8181
"eslint-plugin-react": "^7.37.4",
82-
"eslint-plugin-react-hooks": "^5.1.0",
82+
"eslint-plugin-react-hooks": "^5.2.0",
8383
"eslint-plugin-react-refresh": "^0.4.19",
8484
"globals": "^16.0.0",
8585
"husky": "^9.1.7",

src/lib/views/Day.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ const Day = () => {
9494
} finally {
9595
triggerLoading(false);
9696
}
97-
}, [triggerLoading, START_TIME, END_TIME, getRemoteEvents, handleState]);
97+
// eslint-disable-next-line react-hooks/exhaustive-deps
98+
}, [getRemoteEvents]);
9899

99100
useEffect(() => {
100101
if (getRemoteEvents instanceof Function) {

src/lib/views/Month.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ const Month = () => {
6363
} finally {
6464
triggerLoading(false);
6565
}
66-
}, [triggerLoading, eachWeekStart, daysList.length, getRemoteEvents, handleState]);
66+
// eslint-disable-next-line react-hooks/exhaustive-deps
67+
}, [daysList.length, getRemoteEvents]);
6768

6869
useEffect(() => {
6970
if (getRemoteEvents instanceof Function) {

src/lib/views/Week.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ const Week = () => {
6969
} finally {
7070
triggerLoading(false);
7171
}
72-
}, [triggerLoading, getRemoteEvents, weekStart, weekEnd, handleState]);
72+
// eslint-disable-next-line react-hooks/exhaustive-deps
73+
}, [getRemoteEvents]);
7374

7475
useEffect(() => {
7576
if (getRemoteEvents instanceof Function) {

0 commit comments

Comments
 (0)