useFieldArray over a null default marks the form dirty on mount

Author: soroush5Created Sep 17, 2026Updated Sep 17, 2026

Hey! Found that mounting useFieldArray over an array field whose default is null marks the form dirty right away, even though the user touched nothing. Any form fed by an API that returns null for an empty list shows unsaved-changes state on load. Happy to PR a fix that only initializes the field array when the value is actually undefined if that helps.

Source: react-hook-form/react-hook-form