Skip to content

Commit a7af01d

Browse files
authored
Fix link and improved referring location (#1944)
- Fixed a broken link - Refer to Response page instead of Body (the better referring location based on the context of this section)
1 parent 3f0fc27 commit a7af01d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/rtk-query/api/fetchBaseQuery.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ By default, `fetchBaseQuery` assumes that every request you make will be `json`,
176176
177177
### Parsing a Response
178178
179-
By default, `fetchBaseQuery` assumes that every `Response` you get will be parsed as `json`. In the event that you don't want that to happen, you can specify an alternative response handler like `text`, or take complete control and use a custom function that accepts the raw `Response` object — allowing you to use any [`Body` method](https://developer.mozilla.org/en-US/docs/Web/API/Body).
179+
By default, `fetchBaseQuery` assumes that every `Response` you get will be parsed as `json`. In the event that you don't want that to happen, you can specify an alternative response handler like `text`, or take complete control and use a custom function that accepts the raw `Response` object — allowing you to use any [`Response` method](https://developer.mozilla.org/en-US/docs/Web/API/Response).
180180
181181
```ts title="Parse a Response as text"
182182
import { createApi, fetchBaseQuery } from '@reduxjs/toolkit/query'

0 commit comments

Comments
 (0)