Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade @tanstack/react-query to version 5 (βœ“ Sandbox Passed) #16

Open
wants to merge 38 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
f513bcc
feat: Updated convertPheno_client/package.json
sweep-ai[bot] Dec 8, 2023
c2148dd
feat: Updated convertPheno_client/src/code/Main.js
sweep-ai[bot] Dec 8, 2023
bd4f8f8
feat: Updated convertPheno_client/src/code/views/c
sweep-ai[bot] Dec 8, 2023
cd2e1c9
feat: Updated convertPheno_client/src/code/views/c
sweep-ai[bot] Dec 8, 2023
0cb2675
feat: Updated convertPheno_client/src/code/views/c
sweep-ai[bot] Dec 8, 2023
7ba7010
Merge main into sweep/upgrade-react-query
sweep-ai[bot] Dec 8, 2023
331f9f9
Merge main into sweep/upgrade-react-query
sweep-ai[bot] Dec 8, 2023
084af6e
Merge main into sweep/upgrade-react-query
sweep-ai[bot] Dec 8, 2023
7489ae6
Merge main into sweep/upgrade-react-query
sweep-ai[bot] Dec 9, 2023
f4141b5
Merge main into sweep/upgrade-react-query
sweep-ai[bot] Dec 9, 2023
db4c447
Merge main into sweep/upgrade-react-query
sweep-ai[bot] Dec 9, 2023
f8aa3fa
Merge main into sweep/upgrade-react-query
sweep-ai[bot] Dec 9, 2023
c43a215
Merge main into sweep/upgrade-react-query
sweep-ai[bot] Dec 9, 2023
9932a54
Merge main into sweep/upgrade-react-query
sweep-ai[bot] Dec 9, 2023
229d97c
Merge main into sweep/upgrade-react-query
sweep-ai[bot] Dec 9, 2023
e799e0c
Merge main into sweep/upgrade-react-query
sweep-ai[bot] Dec 9, 2023
24e2cb9
Merge main into sweep/upgrade-react-query
sweep-ai[bot] Dec 9, 2023
08e4862
Merge main into sweep/upgrade-react-query
sweep-ai[bot] Dec 9, 2023
f4e7ee8
Merge main into sweep/upgrade-react-query
sweep-ai[bot] Dec 9, 2023
7901c49
Merge main into sweep/upgrade-react-query
sweep-ai[bot] Dec 9, 2023
315c945
Merge main into sweep/upgrade-react-query
sweep-ai[bot] Dec 9, 2023
71c7825
Merge main into sweep/upgrade-react-query
sweep-ai[bot] Dec 10, 2023
5fd301c
Merge main into sweep/upgrade-react-query
sweep-ai[bot] Dec 10, 2023
80cb773
Merge main into sweep/upgrade-react-query
sweep-ai[bot] Dec 10, 2023
ccd925a
Merge main into sweep/upgrade-react-query
sweep-ai[bot] Dec 10, 2023
a777ad0
Merge main into sweep/upgrade-react-query
sweep-ai[bot] Dec 10, 2023
4f5c819
Merge main into sweep/upgrade-react-query
sweep-ai[bot] Dec 10, 2023
34588d2
Merge main into sweep/upgrade-react-query
sweep-ai[bot] Dec 10, 2023
b18f595
Merge main into sweep/upgrade-react-query
sweep-ai[bot] Dec 10, 2023
9a0fcb1
Merge main into sweep/upgrade-react-query
sweep-ai[bot] Dec 10, 2023
9b3dd75
Merge main into sweep/upgrade-react-query
sweep-ai[bot] Dec 10, 2023
64ed2d9
Merge main into sweep/upgrade-react-query
sweep-ai[bot] Dec 10, 2023
983cf73
Merge main into sweep/upgrade-react-query
sweep-ai[bot] Dec 10, 2023
e166940
Merge main into sweep/upgrade-react-query
sweep-ai[bot] Dec 11, 2023
853de5c
Merge main into sweep/upgrade-react-query
sweep-ai[bot] Dec 11, 2023
d8a6f68
Merge main into sweep/upgrade-react-query
sweep-ai[bot] Dec 11, 2023
3aa23c2
Merge main into sweep/upgrade-react-query
sweep-ai[bot] Dec 11, 2023
560005f
Merge main into sweep/upgrade-react-query
sweep-ai[bot] Dec 12, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion convertPheno_client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"@mui/material": "^5.14.20",
"@mui/system": "^5.14.20",
"@mui/x-tree-view": "^6.17.0",
"@tanstack/react-query": "4.36.1",
"@tanstack/react-query": "5.x.x",
"ag-grid-community": "^31.0.0",
"ag-grid-react": "^31.0.0",
"axios": "^1.6.2",
Expand Down
6 changes: 3 additions & 3 deletions convertPheno_client/src/code/Main.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@

import React from "react";
import { HashRouter } from "react-router-dom";
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
import { ReactQueryDevtools } from "@tanstack/react-query-devtools";
import { createQueryClient, QueryClientProvider } from "@tanstack/react-query";
import { ReactQueryDevtools } from "@tanstack/react-query/devtools";
import { DndProvider } from "react-dnd";
import { HTML5Backend } from "react-dnd-html5-backend";
import App from "./App";

const queryClient = new QueryClient();
const queryClient = createQueryClient();

export default function Main() {
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

import React, { useEffect, useState } from "react";
import { useLocation } from "react-router-dom";
import { useQueryClient } from "@tanstack/react-query";
import { useQueryClient, QueryClient } from "@tanstack/react-query";

import SimpleTabs from "./components/simpleTabs/SimpleTabs";
import useQueryBuilder from "./components/queryBuilder/hooks/useQueryBuilder";
Expand All @@ -28,7 +28,7 @@ export default function ClinicalData(props) {
*/
const { outputFormats, jobId } = props;
const location = useLocation();
const queryClient = useQueryClient();
const queryClient = new QueryClient();

const [tabValue, setTabValue] = useState(0);
const [shownColumns, setShownColumns] = useState({});
Expand Down Expand Up @@ -59,7 +59,7 @@ export default function ClinicalData(props) {
});

useEffect(() => {
queryClient.invalidateQueries("resultsQuery", { refetchActive: true });
queryClient.invalidateQueries("resultsQuery");
}, [location, queryClient, shownColumns]);

const renderQueryBuilder = useQueryBuilder({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default function Submission(props) {
const [uploadedFiles, setUploadedFiles] = useState({});
const [startFileConversion, setStartFileConversion] = useState(false);

const queryClient = useQueryClient();
const queryClient = new QueryClient();
const navigate = useNavigate();

const { status, data } = useFileConversions({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
License: GPL-3.0 license
*/

import { useQuery } from "@tanstack/react-query";
import { useQuery } from "react-query";
import apiRequest from "../../../ApiRequest";

export default function useFinishedJobs(props) {
Expand All @@ -34,6 +34,8 @@ export default function useFinishedJobs(props) {
cacheTime: 200,
staleTime: 300_000,
onSuccess: (data) => {},
refetchOnWindowFocus: false,
refetchOnReconnect: false
}
);
}
Loading