Run Effect + Cleanup Function on specific renders ↔ call useEffect() with property in Deps Array & Cleanup Function

useEffect(() => {
if (!someBooolean) return
const DO_SOMETHING = () => {
if (_SOMELOGIC) setSomeBoolean(false)
// DO_SOMETHING
}
return () => CLEANUP(),
[someBoolean])