Build the Production Task Screen
Build a complete task screen using React Hook Form, Zod, TanStack Query, and deliberate state ownership.
What you are building
Deliverables
Work through it one observable step at a time
- 01
Create stable query-key factories for list/detail resources.
- 02
Load the task list and render loading, empty, error, and success states.
- 03
Build the create form with React Hook Form and Zod.
- 04
Map API validation errors back to the form without losing client validation.
- 05
Create mutations and invalidate only the cache identities affected by the change.
- 06
Add paginated queries and prefetch the likely next page.
- 07
Add one optimistic update with snapshot/cancel/rollback logic.
- 08
Reproduce a mutation race and decide whether cancellation, sequencing, or server reconciliation owns the fix.
- 09
Move shareable filters/page state into the URL and justify remaining local state.