Skip to content

Commit 399e404

Browse files
authored
fix response type
1 parent c10f8f2 commit 399e404

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/rtk-query/usage/customizing-queries.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ export const api = createApi({
430430
getPosts: build.query<PostsResponse, void>({
431431
query: () => ({ url: 'posts' }),
432432
}),
433-
getPost: build.query<PostsResponse, string>({
433+
getPost: build.query<Post, string>({
434434
query: (id) => ({ url: `post/${id}` }),
435435
extraOptions: { maxRetries: 8 }, // You can override the retry behavior on each endpoint
436436
}),

0 commit comments

Comments
 (0)