Oct 20, 2022
Article describes core React functionality as a problem. There is a reason why useEffect runs for all without []. Because it's a use case. So is []. So is [loading, data], etc. It runs twice in strict mode on purpose, it's not a bug. And you can disable strict mode while developing.