chore: update to react query v5

This commit is contained in:
Stavros
2025-04-15 12:27:28 +03:00
parent b24aab17b1
commit 7413b3f931
11 changed files with 23 additions and 29 deletions

View File

@@ -1,4 +1,4 @@
import { useQuery } from "@tanstack/react-query";
import { useSuspenseQuery } from "@tanstack/react-query";
import React, { createContext, useContext } from "react";
import axios from "axios";
import { AppContextSchemaType } from "../schemas/app-context-schema";
@@ -14,7 +14,7 @@ export const AppContextProvider = ({
data: userContext,
isLoading,
error,
} = useQuery({
} = useSuspenseQuery({
queryKey: ["appContext"],
queryFn: async () => {
const res = await axios.get("/api/app");