You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** A boolean indicating whether the form should check for dirty state upon reset. */
322
329
triggerDirty?: boolean
330
+
/** A boolean indicating whether the form should check for errors upon reset. */
331
+
triggerError?: boolean
323
332
/** A boolean indicating whether the initial values of the form should be retained after reset. If false, provided formData will become initial data. */
324
333
keepInitialValues?: boolean
334
+
/** Partial initial values to override the current initial values upon reset.
335
+
* @note `keepInitialValues` will have no effect when this is provided.
336
+
*/
337
+
formInitialValues?: Partial<T>
325
338
},
326
339
)=>{
327
340
const{
328
341
keepDirty =false,
329
342
keepTouched =false,
330
343
keepErrors =false,
331
344
triggerDirty =false,
345
+
triggerError =false,
332
346
keepInitialValues =false,
347
+
formInitialValues ={},
333
348
}=resetOptions??{}// Destructure reset options with defaults.
0 commit comments