Q376-Q380

Cheat Sheet

QuestionCore IdeaSenior Signal
Q376Code reviewFind production risk first: stale data, missing states, accessibility gaps, security leaks, and weak tests.
Q377RefactoringExtract small behavior hooks with clear lifecycle and avoid private frameworks hidden inside one hook.
Q378TypeScript modelingUse discriminated unions for UI states and validate unknown API data before trust.
Q379-Q380Async UI and testsCancel or sequence requests, keep latest result truthful, and test by behavior, risk, and confidence layer.