Skip to content

Commit 0b8400c

Browse files
committed
set task after sending data
1 parent bba6025 commit 0b8400c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/RESTController.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,10 +194,11 @@ const RESTController = {
194194
xhr,
195195
});
196196
};
197+
xhr.send(data);
198+
197199
if (options && typeof options.requestTask === 'function') {
198200
options.requestTask(xhr);
199201
}
200-
xhr.send(data);
201202
};
202203
dispatch();
203204

0 commit comments

Comments
 (0)