Skip to content

Instantly share code, notes, and snippets.

@chnbohwr
Created October 31, 2017 07:07
Show Gist options
  • Select an option

  • Save chnbohwr/c95ab22a7b676591ba6f28c18792adf4 to your computer and use it in GitHub Desktop.

Select an option

Save chnbohwr/c95ab22a7b676591ba6f28c18792adf4 to your computer and use it in GitHub Desktop.
const afterLogin = async() => {
const datas = await Promise.all([
axios.get('/profileData'),
axios.get('/menuData'),
axios.get('/api/dashboard/xxxx')
]);
return {
userProfile: datas[0],
menuData: datas[1],
dashboardData: datas[2]
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment