What is the correct way to conditionally synchronize logic in an Effect?
Call useEffect only inside an if statement
Skip dependency arrays entirely
Put the condition inside the Effect body while still declaring the Effect normally
Use refs instead of dependencies