Commit 29a65ed
committed
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.1 parent ba32b7f commit 29a65ed
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
240 | 243 | | |
241 | 244 | | |
242 | 245 | | |
| |||
0 commit comments