Yes that’s why of instead of learning the standard apis, you have to spend 15 months learning how to debug useEffect

Or just skip all of the newly released stuff and use React as it was originally made, like me and many others still do. Never suffer from having to debug "useEffect" because we literally never use it. You don't have to use the newest and shiniest toys, especially not those with footguns.