Skip to content

Commit

Permalink
Upgrade to React 19
Browse files Browse the repository at this point in the history
  • Loading branch information
tjementum committed Dec 16, 2024
1 parent 1eb3f03 commit 50486d2
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 36 deletions.
50 changes: 21 additions & 29 deletions application/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions application/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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",
Expand All @@ -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": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export function createApiReactHook<
const [loading, setLoading] = useState(false);
const [success, setSuccess] = useState<boolean | null>(null);
const [data, setData] = useState<Data | undefined>();
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);
Expand Down

0 comments on commit 50486d2

Please sign in to comment.