@colisweb/rescript-toolkit 4.2.2 → 4.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/form/Reform.res +2 -0
package/package.json
CHANGED
package/src/form/Reform.res
CHANGED
|
@@ -70,6 +70,7 @@ module Make = (Config: Config) => {
|
|
|
70
70
|
isErrored: bool,
|
|
71
71
|
isDirty: bool,
|
|
72
72
|
isValid: bool,
|
|
73
|
+
setFormState: formState => unit,
|
|
73
74
|
}
|
|
74
75
|
|
|
75
76
|
type onSubmitAPI = {
|
|
@@ -399,6 +400,7 @@ module Make = (Config: Config) => {
|
|
|
399
400
|
isErrored: state.formState == Errored,
|
|
400
401
|
isDirty: state.formState == Dirty,
|
|
401
402
|
isValid: state.formState == Valid,
|
|
403
|
+
setFormState: formState => send(SetFormState(formState)),
|
|
402
404
|
}
|
|
403
405
|
|
|
404
406
|
interface
|