Skip to content

Commit de54377

Browse files
chore(deps): update react monorepo to v19 (major) (#1664)
* chore(deps): update react monorepo to v19 * fix useInterval Signed-off-by: Adam Setch <[email protected]> * fix useInterval Signed-off-by: Adam Setch <[email protected]> --------- Signed-off-by: Adam Setch <[email protected]> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Adam Setch <[email protected]>
1 parent c6f971d commit de54377

File tree

3 files changed

+54
-71
lines changed

3 files changed

+54
-71
lines changed

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@
130130
"electron-log": "5.2.4",
131131
"electron-updater": "6.3.9",
132132
"menubar": "9.5.1",
133-
"react": "18.3.1",
134-
"react-dom": "18.3.1",
133+
"react": "19.0.0",
134+
"react-dom": "19.0.0",
135135
"react-router-dom": "6.28.0",
136136
"update-electron-app": "3.0.0"
137137
},
@@ -144,7 +144,8 @@
144144
"@types/jest": "29.5.14",
145145
"@types/node": "22.10.1",
146146
"@types/nprogress": "0.2.3",
147-
"@types/react": "18.3.14",
147+
"@types/react": "19.0.0",
148+
"@types/react-dom": "19.0.0",
148149
"@types/react-router-dom": "5.3.3",
149150
"autoprefixer": "10.4.20",
150151
"axios": "1.7.9",

pnpm-lock.yaml

Lines changed: 49 additions & 66 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/renderer/hooks/useInterval.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
import { useEffect, useRef } from 'react';
22

33
// Thanks to https://overreacted.io/making-setinterval-declarative-with-react-hooks/
4-
54
export const useInterval = (callback, delay) => {
6-
const savedCallback = useRef();
5+
const savedCallback = useRef(null);
76

87
// Remember the latest callback.
98
useEffect(() => {

0 commit comments

Comments
 (0)