Skip to content

Commit

Permalink
Fix docs for comparators
Browse files Browse the repository at this point in the history
  • Loading branch information
hala94 committed Jun 5, 2023
1 parent f754dbe commit 1905da1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/docs/pages/docs/reference/createForm.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ Each field async validator is a Promise that either resolves with an `Error` ins

Custom comparator functions for each form field. To determine `modifications`, each fields value must be compared to its previous value.

By default, Formeus will compare the field values with the strict equality operator by default so it is sufficient in most common use cases.
However, if your form fields have `objects` as their values, use _comparators_ to make `modifications` work.
By default, field _equality_ is determined with _strictly equal_ operator (===) for primitives, and
_deep equality_ for objects, so use this property only if needed.

### `onSubmitForm`

Expand Down

0 comments on commit 1905da1

Please sign in to comment.