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
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -65,6 +65,7 @@ type FetchBaseQueryArgs = {
65
65
BaseQueryApi,
66
66
'getState'|'extra'|'endpoint'|'type'|'forced'
67
67
>,
68
+
args:string|FetchArgs
68
69
) =>MaybePromise<Headers|void>
69
70
fetchFn?: (
70
71
input:RequestInfo,
@@ -105,7 +106,7 @@ Typically a string like `https://api.your-really-great-app.com/v1/`. If you don'
105
106
106
107
_(optional)_
107
108
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.
109
+
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.Argumentspassedtothequeryfunction is passed as the third argument in case you need those params in the context of the `prepareHeaders` function.
0 commit comments