T
TanStack2w ago
dependent-tan

Form gets reset to old pre-reset default values on re-render

Reproduction: https://stackblitz.com/edit/tanstack-form-eoqappkk?file=src%2Findex.tsx 1. Enter some new values into the form (not dirty -> dirty) 2. Click "Save" (dirty -> not dirty) 3. Click "Rerender" ⚠️ -> form gets reset to old values (but also remains non dirty) ⚠️
foobarbaz
StackBlitz
Form Simple Example (duplicated) - StackBlitz
Run official live example code for Form Simple, created by Tanstack on StackBlitz
1 Reply

Did you find this page helpful?