You probably don’t need useEffect

I once spent the better part of a Friday debugging a checkout flow that fired our “purchase complete” analytics event three times per…