File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -9,8 +9,7 @@ import { normalizeTypeDescriptors, actionWith } from './util';
9
9
* @type {Object }
10
10
*/
11
11
const defaults = {
12
- ok : res => res . ok ,
13
- fetch
12
+ ok : res => res . ok
14
13
} ;
15
14
16
15
/**
@@ -56,7 +55,7 @@ function createMiddleware(options = {}) {
56
55
body,
57
56
headers,
58
57
options = { } ,
59
- fetch : doFetch = middlewareOptions . fetch ,
58
+ fetch : doFetch = middlewareOptions . fetch || fetch ,
60
59
ok = middlewareOptions . ok
61
60
} = callAPI ;
62
61
const { method, credentials, bailout, types } = callAPI ;
@@ -230,6 +229,7 @@ function createMiddleware(options = {}) {
230
229
*
231
230
* @type {ReduxMiddleware }
232
231
* @access public
232
+ * @deprecated since v3.2.0 use `createMiddleware`
233
233
*/
234
234
function apiMiddleware ( { getState } ) {
235
235
return createMiddleware ( ) ( { getState } ) ;
You can’t perform that action at this time.
0 commit comments