Skip to content
This repository has been archived by the owner on Nov 23, 2024. It is now read-only.

Commit

Permalink
Remove comment
Browse files Browse the repository at this point in the history
  • Loading branch information
msutkowski committed Nov 8, 2020
1 parent a2d2f7a commit 066032c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/fetchBaseQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ const defaultValidateStatus = (response: Response) => response.status >= 200 &&

const isJsonContentType = (headers: Headers) => headers.get('content-type')?.trim()?.startsWith('application/json');

// note: and fetchBaseQuery should probably have a prepareHeaders method option --- baseQuery has access to thunkApi aka (dispatch, getState)
export function fetchBaseQuery({ baseUrl }: { baseUrl?: string } = {}) {
return async (arg: string | FetchArgs, { signal, rejectWithValue }: QueryApi) => {
let {
Expand Down

0 comments on commit 066032c

Please sign in to comment.