refactor(client): extract useSectionForm hook for multi-section forms
- Create shared useSectionForm hook that handles form, save mutation, section reconciliation, and dirty state - Reconcile only saved section from server response (not full reset) to preserve in-progress edits in other sections - Consume in EmployeeProfileForm, CvWizard, QuestionnaireWizard - Each consumer passes its own entity type, buildDefaultValues, extractSectionData, and saveSection function
Q
qorbanisepehr committed
8b7a480e51a49b2cbd0e4a50ac49caebaef6eee1
Parent: 720ca4e