Optional context that lets a host (for example Approvals) read whether a
rendered form has unsaved user edits. Derived writes (isDerivedChange) do
not set this.
Wrap both the form and the host action so they share one registry. Each form
registers under its formId, so multiple forms under the same provider (for
example an approval form in a dialog) keep independent flags. If nothing is
registered for a form, useFormIsDirty is false.
Optional context that lets a host (for example Approvals) read whether a rendered form has unsaved user edits. Derived writes (
isDerivedChange) do not set this.Wrap both the form and the host action so they share one registry. Each form registers under its
formId, so multiple forms under the same provider (for example an approval form in a dialog) keep independent flags. If nothing is registered for a form, useFormIsDirty isfalse.