Approval flows look simple in product meetings, then get weird fast in code. A reviewer clicks Approve, the UI updates, a follow-up email should go out, and somehow the same action fires twice after a refetch or tab restore. I have seen this happen in otherwise clean React apps, and it nearly a...
Source: [Dev.to](https://dev.to/ryanlee91/react-approval-emails-without-effect-loops-3afp)