Parent tracking issue: #1455
Summary
Resolve the 2 `@eslint-react/purity` warnings. The rule flags side effects (mutations, I/O, randomness, current-time reads) inside render functions, which break React's pure-render guarantee.
Fix pattern
Move the side effect out of render — into an event handler, a `useEffect`, or a `useMemo` with controlled deps. Common offenders:
- `Math.random()` or `crypto.randomUUID()` at render top — wrap in `useState(() => crypto.randomUUID())` so it's stable across renders.
- `new Date()` at render top — likewise, or get the time in an effect if it's meant to update.
- Mutating an external variable or imported singleton during render.
Scope
Production code. Only 2 instances, find via `npm run lint` output.
Acceptance Criteria
Risk
Very low. Tiny scope.
Parent tracking issue: #1455
Summary
Resolve the 2 `@eslint-react/purity` warnings. The rule flags side effects (mutations, I/O, randomness, current-time reads) inside render functions, which break React's pure-render guarantee.
Fix pattern
Move the side effect out of render — into an event handler, a `useEffect`, or a `useMemo` with controlled deps. Common offenders:
Scope
Production code. Only 2 instances, find via `npm run lint` output.
Acceptance Criteria
Risk
Very low. Tiny scope.