File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ function createMiddleware(options = {}) {
88
88
// Process [RSAA].endpoint function
89
89
if ( typeof endpoint === 'function' ) {
90
90
try {
91
- endpoint = endpoint ( getState ( ) ) ;
91
+ endpoint = await endpoint ( getState ( ) ) ;
92
92
} catch ( e ) {
93
93
return next (
94
94
await actionWith (
@@ -106,7 +106,7 @@ function createMiddleware(options = {}) {
106
106
// Process [RSAA].body function
107
107
if ( typeof body === 'function' ) {
108
108
try {
109
- body = body ( getState ( ) ) ;
109
+ body = await body ( getState ( ) ) ;
110
110
} catch ( e ) {
111
111
return next (
112
112
await actionWith (
@@ -124,7 +124,7 @@ function createMiddleware(options = {}) {
124
124
// Process [RSAA].headers function
125
125
if ( typeof headers === 'function' ) {
126
126
try {
127
- headers = headers ( getState ( ) ) ;
127
+ headers = await headers ( getState ( ) ) ;
128
128
} catch ( e ) {
129
129
return next (
130
130
await actionWith (
@@ -142,7 +142,7 @@ function createMiddleware(options = {}) {
142
142
// Process [RSAA].options function
143
143
if ( typeof options === 'function' ) {
144
144
try {
145
- options = options ( getState ( ) ) ;
145
+ options = await options ( getState ( ) ) ;
146
146
} catch ( e ) {
147
147
return next (
148
148
await actionWith (
You can’t perform that action at this time.
0 commit comments