react-native-template-mobx
react-native-template-mobx copied to clipboard
使用了apisauce后,针对axios中的合并请求应该如何处理?
例如: function getUserAccount() { return axios.get('/user/12345'); } function getUserPermissions() { return axios.get('/user/12345/permissions'); } axios.all([getUserAccount(), getUserPermissions()]) .then(axios.spread(function (acct, perms) { // Both requests are now complete }));