We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c10f8f2 commit 399e404Copy full SHA for 399e404
docs/rtk-query/usage/customizing-queries.mdx
@@ -430,7 +430,7 @@ export const api = createApi({
430
getPosts: build.query<PostsResponse, void>({
431
query: () => ({ url: 'posts' }),
432
}),
433
- getPost: build.query<PostsResponse, string>({
+ getPost: build.query<Post, string>({
434
query: (id) => ({ url: `post/${id}` }),
435
extraOptions: { maxRetries: 8 }, // You can override the retry behavior on each endpoint
436
0 commit comments