From 29a65ed2f66e2b8c0c2a322f79439c99f22736fc Mon Sep 17 00:00:00 2001 From: Sam Autrey Date: Tue, 17 Feb 2026 09:06:13 -0600 Subject: [PATCH] fix(react-form): Make form.options reactive by adding getter Fixes an issue where form.options.defaultValues was not reactive when initializing a form with async data. The options object was captured in the useMemo closure and never updated when formApi.options changed. Adding a getter for options (similar to the existing state getter) ensures that the latest options are always returned, fixing reactivity issues when comparing current values to defaultValues. --- packages/react-form/src/useForm.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/react-form/src/useForm.tsx b/packages/react-form/src/useForm.tsx index b4ce691e6..f7c007d63 100644 --- a/packages/react-form/src/useForm.tsx +++ b/packages/react-form/src/useForm.tsx @@ -237,6 +237,9 @@ export function useForm< get state() { return formApi.store.state }, + get options() { + return formApi.options + }, } as never extendedApi.Field = function APIField(props) {