You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/rtk-query/api/fetchBaseQuery.mdx
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,7 +64,7 @@ type FetchBaseQueryArgs = {
64
64
api:Pick<
65
65
BaseQueryApi,
66
66
'getState'|'extra'|'endpoint'|'type'|'forced'
67
-
>,
67
+
>& { arg:string|FetchArgs },
68
68
) =>MaybePromise<Headers|void>
69
69
fetchFn?: (
70
70
input:RequestInfo,
@@ -105,7 +105,7 @@ Typically a string like `https://api.your-really-great-app.com/v1/`. If you don'
105
105
106
106
_(optional)_
107
107
108
-
Allowsyoutoinjectheadersoneveryrequest. Youcanspecifyheadersattheendpointlevel, butyou'll typically want to set common headers like `authorization` here. As a convenience mechanism, the second argument allows you to use `getState` to access your redux store in the event you store information you'llneedtheresuchasanauthtoken. Additionally, itprovidesaccessto`extra`, `endpoint`, `type`, and`forced`tounlockmoregranularconditionalbehaviors.
108
+
Allowsyoutoinjectheadersoneveryrequest. Youcanspecifyheadersattheendpointlevel, butyou'll typically want to set common headers like `authorization` here. As a convenience mechanism, the second argument allows you to use `getState` to access your redux store in the event you store information you'llneedtheresuchasanauthtoken. Additionally, itprovidesaccessto`arg`, `extra`, `endpoint`, `type`, and`forced`tounlockmoregranularconditionalbehaviors.
0 commit comments