T
TanStack13mo ago
like-gold

Question regarding meta.isPristine

React Final Form has the modified property (https://final-form.org/docs/react-final-form/types/FieldRenderProps#metamodified) which is basically like a Tamper Sticker, and is useful for Saving Indicators on autosaving forms (since it lets me handle the case where the user changes a field, autosave kicks in, the indicator shows it's been saved, and the user changes their mind and puts the field back to the initial value... RFF uses equality to determine the pristine state, as well as the dirty state). My question is: is there any way to cover this case in Tanstack Form?
2 Replies
like-gold
like-goldOP13mo ago
Yes but it doesn't tell me how isPristine is calculated relative to the form's default values I'm blind... I didn't read the bit about RHF and isDirty because I didn't think it would apply to me given that React Hook Form !== React Final Form

Did you find this page helpful?