1- import { queryOptions } from " @tanstack/react-query" ;
1+ import { queryOptions } from ' @tanstack/react-query'
22
33export async function fetchProjects ( ) : Promise <
44 Array < { name : string ; full_name : string } >
@@ -12,10 +12,11 @@ export async function fetchProjects(): Promise<
1212 return await response . json ( )
1313}
1414
15- export const projectsQuery = ( ) => queryOptions ( {
16- queryKey : [ 'projects' ] ,
17- queryFn : fetchProjects ,
18- } )
15+ export const projectsQuery = ( ) =>
16+ queryOptions ( {
17+ queryKey : [ 'projects' ] ,
18+ queryFn : fetchProjects ,
19+ } )
1920
2021export async function fetchProject ( id : string ) : Promise < {
2122 full_name : string
@@ -30,7 +31,8 @@ export async function fetchProject(id: string): Promise<{
3031 return await response . json ( )
3132}
3233
33- export const projectQuery = ( id : string ) => queryOptions ( {
34- queryKey : [ 'project' , id ] ,
35- queryFn : ( ) => fetchProject ( id ) ,
36- } )
34+ export const projectQuery = ( id : string ) =>
35+ queryOptions ( {
36+ queryKey : [ 'project' , id ] ,
37+ queryFn : ( ) => fetchProject ( id ) ,
38+ } )
0 commit comments