Hilarious. The code "fix" Copilot suggests in their example[1] is wrong on some many levels. It's trying to use await in something that is not an async function. From the other examples it's clear this is likely React's useEffect. You could not even make that callback an async function if you wanted to - this naive fix for that leads to subtle bugs. And last but not least: The issue here - if there's any - can alread…
More likely replaced by seniors who forgot how to write code by hand because they're relying so much on AI. I don't think juniors are a thing anymore.