File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,12 @@ export default function useFetchArgs(
49
49
...defaults . headers ,
50
50
...globalOptions . headers ,
51
51
...localOptions . headers
52
- } as Headers
52
+ } as Headers ,
53
+ interceptors : {
54
+ ...defaults . interceptors ,
55
+ ...globalOptions . interceptors ,
56
+ ...localOptions . interceptors
57
+ } as Interceptors
53
58
} as Options
54
59
if ( overwriteGlobalOptions ) return overwriteGlobalOptions ( finalOptions )
55
60
return finalOptions
@@ -79,7 +84,7 @@ export default function useFetchArgs(
79
84
} , [ options ] )
80
85
81
86
const customOptions = useMemo ( ( ) : CustomOptions => {
82
- const customOptionKeys = Object . keys ( useFetchArgsDefaults . customOptions ) as ( keyof CustomOptions ) [ ] // Array<keyof CustomOptions>
87
+ const customOptionKeys = Object . keys ( useFetchArgsDefaults . customOptions ) as ( keyof CustomOptions ) [ ] // Array<keyof CustomOptions>
83
88
const customOptions = customOptionKeys . reduce ( ( opts , key ) => {
84
89
( opts as any ) [ key ] = options [ key ]
85
90
return opts
You can’t perform that action at this time.
0 commit comments