Cheat Sheet
| Question | Core Idea | Senior Signal |
|---|---|---|
| Q376 | Code review | Find production risk first: stale data, missing states, accessibility gaps, security leaks, and weak tests. |
| Q377 | Refactoring | Extract small behavior hooks with clear lifecycle and avoid private frameworks hidden inside one hook. |
| Q378 | TypeScript modeling | Use discriminated unions for UI states and validate unknown API data before trust. |
| Q379-Q380 | Async UI and tests | Cancel or sequence requests, keep latest result truthful, and test by behavior, risk, and confidence layer. |