Skip to content

Commit

Permalink
Merge pull request #2954 from OliverRadini/issues/2947
Browse files Browse the repository at this point in the history
  • Loading branch information
markerikson authored Jan 28, 2023
2 parents 13d48e2 + 995e662 commit 85ec86b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/rtk-query/usage/customizing-queries.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ See also [Websocket Chat API with a transformed response shape](./streaming-upda

## Customizing query responses with `transformErrorResponse`

Individual endpoints on [`createApi`](../api/createApi.mdx) accept a [`transformErrorResponse`](../api/createApi.mdx) property which allows manipulation of the errir returned by a query or mutation before it hits the cache.
Individual endpoints on [`createApi`](../api/createApi.mdx) accept a [`transformErrorResponse`](../api/createApi.mdx) property which allows manipulation of the error returned by a query or mutation before it hits the cache.

`transformErrorResponse` is called with the error that a failed `baseQuery` returns for the corresponding endpoint, and the return value of `transformErrorResponse` is used as the cached error associated with that endpoint call.

Expand Down

0 comments on commit 85ec86b

Please sign in to comment.