These two awaits run one after the other. How do you make them run in parallel?
async function loadDashboard() {
const user = await getUser();
const posts = await getPosts();
return { user, posts };
}
The answer
Answer it out loud first, the way you would in the interview. Then compare.
Checking your sign-in…