Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix local form data when form isn't mounted
If the form isn't on the page (e.g. if we're read-only), then useFormData will return no values. In these cases, we can simply fall back to the initialState values, as they'll either be: the default values on a new form, or: the current values on an active create/edit form. Updates the manual type of useFormData to reflect this "maybe" fact.
- Loading branch information