Skip to content

Commit fac43eb

Browse files
committed
refactor: remove unnecessary comments
1 parent 4e99590 commit fac43eb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/api/posts/use-post.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ type Variables = { id: string };
88
type Response = Post;
99

1010
export const usePost = createQuery<Response, Variables, AxiosError>({
11-
queryKey: ['posts'], // we recommend using endpoint base url as queryKey
11+
queryKey: ['posts'],
1212
fetcher: (variables) => {
1313
return client
1414
.get(`posts/${variables.id}`)

src/api/posts/use-posts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ type Response = Post[];
88
type Variables = void; // as react-query-kit is strongly typed, we need to specify the type of the variables as void in case we don't need them
99

1010
export const usePosts = createQuery<Response, Variables, AxiosError>({
11-
queryKey: ['posts'], // we recommend using endpoint base url as queryKey
11+
queryKey: ['posts'],
1212
fetcher: () => {
1313
return client.get(`posts`).then((response) => response.data.posts);
1414
},

0 commit comments

Comments
 (0)