I switch between async/await and plain promises often. I also mix await with .catch()
Some code gets simpler with await, especially when I need to mix results of multiple promises and following requests are based on the results of the last ones.
Some code gets simpler with plain promises, like parallelisation. When I need to retrieve the data of multiple views in one screen I often drop them off as promise and then the result into the views when they arrive.
I switch between async/await and plain promises often. I also mix await with .catch()
Some code gets simpler with await, especially when I need to mix results of multiple promises and following requests are based on the results of the last ones.
Some code gets simpler with plain promises, like parallelisation. When I need to retrieve the data of multiple views in one screen I often drop them off as promise and then the result into the views when they arrive.