We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
options.request.hook
(request, endpointOptions)
1 parent 9817462 commit 3aa81f3Copy full SHA for 3aa81f3
src/with-defaults.ts
@@ -25,9 +25,9 @@ export default function withDefaults(
25
return fetchWrapper(endpoint.parse(endpointOptions));
26
}
27
28
- return endpointOptions.request.hook(endpointOptions, (options: Defaults) =>
29
- fetchWrapper(endpoint.parse(options))
30
- );
+ return endpointOptions.request.hook((options: Defaults) => {
+ return fetchWrapper(endpoint.parse(options));
+ }, endpointOptions);
31
};
32
33
return Object.assign(newApi, {
0 commit comments