0👍
✅
Instead of aliasing this
consider using the fat arrow function
to retain the scope of this
inside of the anonymous callback:
.then(axios.spread((tasksResponse, keywordsResponse,getTasksResponse,discResponse) => {
//this is now scoped correctly.
}))
Source:stackexchange.com