File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
1
import { PageTitle } from "@/components/PageTitle"
2
2
import { Skeleton } from "@/components/ui/skeleton"
3
3
import { identityDetail , mintInfo } from "@/generated/client/sdk.gen"
4
- import { useSuspenseQuery } from "@tanstack/react-query"
4
+ import { useSuspenseQuery , useQuery } from "@tanstack/react-query"
5
5
import { Suspense } from "react"
6
6
7
7
function Loader ( ) {
@@ -13,24 +13,26 @@ function Loader() {
13
13
}
14
14
15
15
function PageBody ( ) {
16
- const { data : identityData } = useSuspenseQuery ( {
16
+ const { data : identityData } = useQuery ( {
17
17
queryKey : [ "identity-detail" ] ,
18
18
queryFn : async ( ) => {
19
19
const response = await identityDetail ( )
20
20
return response . data ?? null
21
21
} ,
22
22
staleTime : Infinity ,
23
23
gcTime : Infinity ,
24
+ throwOnError : false ,
24
25
} )
25
26
26
- const { data : mintData } = useSuspenseQuery ( {
27
+ const { data : mintData } = useQuery ( {
27
28
queryKey : [ "mint-info" ] ,
28
29
queryFn : async ( ) => {
29
30
const response = await mintInfo ( )
30
31
return response . data ?? null
31
32
} ,
32
33
staleTime : Infinity ,
33
34
gcTime : Infinity ,
35
+ throwOnError : false ,
34
36
} )
35
37
36
38
return (
You can’t perform that action at this time.
0 commit comments