React JS & Axios chaining promies
问题 I am developing a react js application and we are using a promise based library axios for calling APIs. Now, in the initial part of application, user gets a login page, when the login is successful, we contact different systems to retrieve some extra information about user. axios .get('url to authentication endpoint') // 1st call .then(response => { // if login is successful // 1. retrieve the user preferences like, on the customised screens what fields user wanted to see axios.get('user