Skip to content

Commit

Permalink
Correct minor spelling mistake in docs for transform error response
Browse files Browse the repository at this point in the history
  • Loading branch information
OliverRadini committed Nov 27, 2022
1 parent 026221a commit 995e662
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 995e662

Please sign in to comment.