diff --git a/application/package-lock.json b/application/package-lock.json index e50660740..2f74c287c 100644 --- a/application/package-lock.json +++ b/application/package-lock.json @@ -26,9 +26,9 @@ "@tanstack/react-router": "1.90.0", "lucide-react": "0.468.0", "openapi-fetch": "0.13.3", - "react": "18.3.0-canary-c3048aab4-20240326", + "react": "19.0.0", "react-aria-components": "1.5.0", - "react-dom": "18.3.0-canary-c3048aab4-20240326", + "react-dom": "19.0.0", "tailwind-merge": "2.5.5", "tailwind-variants": "0.3.0", "zod": "3.24.1" @@ -46,8 +46,8 @@ "@tailwindcss/container-queries": "0.1.1", "@tanstack/router-devtools": "1.90.0", "@tanstack/router-plugin": "1.87.13", - "@types/react": "18.3.12", - "@types/react-dom": "18.3.1", + "@types/react": "19.0.0", + "@types/react-dom": "19.0.0", "openapi-typescript": "7.4.4", "openapi-typescript-helpers": "0.0.15", "rimraf": "6.0.1", @@ -4617,28 +4617,20 @@ "devOptional": true, "license": "MIT" }, - "node_modules/@types/prop-types": { - "version": "15.7.14", - "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.14.tgz", - "integrity": "sha512-gNMvNH49DJ7OJYv+KAKn0Xp45p8PLl6zo2YnvDIbTd4J6MER2BmWN49TG7n9LvkyihINxeKW8+3bfS2yDC9dzQ==", - "dev": true, - "license": "MIT" - }, "node_modules/@types/react": { - "version": "18.3.12", - "resolved": "https://registry.npmjs.org/@types/react/-/react-18.3.12.tgz", - "integrity": "sha512-D2wOSq/d6Agt28q7rSI3jhU7G6aiuzljDGZ2hTZHIkrTLUI+AF3WMeKkEZ9nN2fkBAlcktT6vcZjDFiIhMYEQw==", + "version": "19.0.0", + "resolved": "https://registry.npmjs.org/@types/react/-/react-19.0.0.tgz", + "integrity": "sha512-MY3oPudxvMYyesqs/kW1Bh8y9VqSmf+tzqw3ae8a9DZW68pUe3zAdHeI1jc6iAysuRdACnVknHP8AhwD4/dxtg==", "dev": true, "license": "MIT", "dependencies": { - "@types/prop-types": "*", "csstype": "^3.0.2" } }, "node_modules/@types/react-dom": { - "version": "18.3.1", - "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.3.1.tgz", - "integrity": "sha512-qW1Mfv8taImTthu4KoXgDfLuk4bydU6Q/TkADnDWWHwi4NX4BR+LWfTp2sVmTqRrsHvyDDTelgelxJ+SsejKKQ==", + "version": "19.0.0", + "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-19.0.0.tgz", + "integrity": "sha512-1KfiQKsH1o00p9m5ag12axHQSb3FOU9H20UTrujVSkNhuCrRHiQWFqgEnTNK5ZNfnzZv8UWrnXVqCmCF9fgY3w==", "dev": true, "license": "MIT", "dependencies": { @@ -7165,9 +7157,9 @@ "license": "MIT" }, "node_modules/react": { - "version": "18.3.0-canary-c3048aab4-20240326", - "resolved": "https://registry.npmjs.org/react/-/react-18.3.0-canary-c3048aab4-20240326.tgz", - "integrity": "sha512-luG9vwr1P496ZYwX2nS4HJQ6ZYU1+014hVBR1HtAnfYZyPPaByAlrKzcE4uembPeRtkA02aQfh6MSOtorY4Aeg==", + "version": "19.0.0", + "resolved": "https://registry.npmjs.org/react/-/react-19.0.0.tgz", + "integrity": "sha512-V8AVnmPIICiWpGfm6GLzCR/W5FXLchHop40W4nXBmdlEceh16rCN8O8LNWm5bh5XUX91fh7KpA+W0TgMKmgTpQ==", "license": "MIT", "engines": { "node": ">=0.10.0" @@ -7269,15 +7261,15 @@ } }, "node_modules/react-dom": { - "version": "18.3.0-canary-c3048aab4-20240326", - "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.3.0-canary-c3048aab4-20240326.tgz", - "integrity": "sha512-tZYbOVfznc27fKOHG5VNQaSFrHecnDZiJWQ+vt0H0k2jh7klkNQDpzqRtw6dWxno+mpUHyKYZ0khn5iRYpVipQ==", + "version": "19.0.0", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.0.0.tgz", + "integrity": "sha512-4GV5sHFG0e/0AD4X+ySy6UJd3jVl1iNsNHdpad0qhABJ11twS3TTBnseqsKurKcsNqCEFeGL3uLpVChpIO3QfQ==", "license": "MIT", "dependencies": { - "scheduler": "0.24.0-canary-c3048aab4-20240326" + "scheduler": "^0.25.0" }, "peerDependencies": { - "react": "18.3.0-canary-c3048aab4-20240326" + "react": "^19.0.0" } }, "node_modules/react-is": { @@ -7563,9 +7555,9 @@ "license": "MIT" }, "node_modules/scheduler": { - "version": "0.24.0-canary-c3048aab4-20240326", - "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.24.0-canary-c3048aab4-20240326.tgz", - "integrity": "sha512-CgNwRUuLgO+trb2HShYfR22XYfQU7jYZrOfoPO4RzUDMIKO3ZbwQFGhW8wuQ3LlzlJXVpExB2vRQep5mZmgDrg==", + "version": "0.25.0", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.25.0.tgz", + "integrity": "sha512-xFVuu11jh+xcO7JOAGJNOXld8/TcEHK/4CituBUeUb5hqxJLj9YuemAEuvm9gQ/+pgXYfbQuqAkiYu+u7YEsNA==", "license": "MIT" }, "node_modules/semver": { diff --git a/application/package.json b/application/package.json index 17baafa0b..584659ccf 100644 --- a/application/package.json +++ b/application/package.json @@ -32,9 +32,9 @@ "@tanstack/react-router": "1.90.0", "lucide-react": "0.468.0", "openapi-fetch": "0.13.3", - "react": "18.3.0-canary-c3048aab4-20240326", + "react": "19.0.0", "react-aria-components": "1.5.0", - "react-dom": "18.3.0-canary-c3048aab4-20240326", + "react-dom": "19.0.0", "tailwind-merge": "2.5.5", "tailwind-variants": "0.3.0", "zod": "3.24.1" @@ -52,8 +52,8 @@ "@tailwindcss/container-queries": "0.1.1", "@tanstack/router-devtools": "1.90.0", "@tanstack/router-plugin": "1.87.13", - "@types/react": "18.3.12", - "@types/react-dom": "18.3.1", + "@types/react": "19.0.0", + "@types/react-dom": "19.0.0", "openapi-typescript": "7.4.4", "openapi-typescript-helpers": "0.0.15", "rimraf": "6.0.1", @@ -66,8 +66,8 @@ "overrides": { "@types/react": "$@types/react", "@types/react-dom": "$@types/react-dom", - "react": "18.3.0-canary-c3048aab4-20240326", - "react-dom": "18.3.0-canary-c3048aab4-20240326" + "react": "19.0.0", + "react-dom": "19.0.0" }, "postcss": { "plugins": { diff --git a/application/shared-webapp/infrastructure/api/ApiReactHook.ts b/application/shared-webapp/infrastructure/api/ApiReactHook.ts index c3df12495..dbc52ea76 100644 --- a/application/shared-webapp/infrastructure/api/ApiReactHook.ts +++ b/application/shared-webapp/infrastructure/api/ApiReactHook.ts @@ -66,7 +66,7 @@ export function createApiReactHook< const [loading, setLoading] = useState(false); const [success, setSuccess] = useState(null); const [data, setData] = useState(); - const fetchDataRef = useRef<((cacheMode?: "reload" | "default") => void) | undefined>(); + const fetchDataRef = useRef<((cacheMode?: "reload" | "default") => void) | undefined>(undefined); // Use a memorized object to prevent unnecessary re-renders const memorizedOptions = useMemorizedObject(options);