Skip to content

Commit

Permalink
Update docs/rtk-query/api/fetchBaseQuery.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
EskiMojo14 authored Sep 13, 2024
1 parent 1190d0f commit af16c4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/rtk-query/api/fetchBaseQuery.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ If you make a `json` request to an API that only returns a `200` with an undefin
The default response handler is `"json"`, which is equivalent to the following function:

```ts title="Default responseHandler"
const defaultResponseHandler = async (res) => {
const defaultResponseHandler = async (res: Response) => {
const text = await res.text();
return text.length ? JSON.parse(text) : null;
}
Expand Down

0 comments on commit af16c4a

Please sign in to comment.