React state, navigation, lifecycle, and durable product behavior
Provide a multi-step task with deep links, transient edits, local persistence, remote truth, offline work, duplicate input, delayed callbacks, Android and iOS backgrounding, process termination, relaunch, account change and one irreversible consequence. Ask what owns each state and why code runs.
Confirm: The person separates view state, navigation state, product rules, repositories, native services and server authority; treats render state as a snapshot; keeps render logic pure; uses event handlers for user-caused effects and Effects only to synchronize with external systems, with dependencies and cleanup that survive development checks; avoids mirrored or contradictory state; scopes asynchronous work, cancellation, stale results and subscriptions; stores only validated durable data; keeps persisted navigation lightweight, serializable, versioned and recoverable; validates deep links and parameters; models AppState transitions without treating a notification as guaranteed background time; reconciles offline work and repeated intent; and keeps authorization and consequential truth on the server.
