@reactables/react-forms 0.4.3-alpha.1 → 0.4.5-alpha.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/dist/index.js +2 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -111,7 +111,8 @@ var FormArray = function (_a) {
|
|
|
111
111
|
};
|
|
112
112
|
|
|
113
113
|
var useForm = function (config) {
|
|
114
|
-
var
|
|
114
|
+
var form = React.useMemo(function () { return forms.RxForm.build(config); }, []);
|
|
115
|
+
var rxForm = reactHelpers.useReactable(form);
|
|
115
116
|
return rxForm;
|
|
116
117
|
};
|
|
117
118
|
|
package/package.json
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"license": "ISC",
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@reactables/core": "*",
|
|
20
|
-
"@reactables/forms": "^0.4.
|
|
20
|
+
"@reactables/forms": "^0.4.5-alpha.0",
|
|
21
21
|
"@reactables/react-helpers": "*"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
@@ -25,5 +25,5 @@
|
|
|
25
25
|
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
|
26
26
|
"rxjs": "^6.0.0 || ^7.0.0"
|
|
27
27
|
},
|
|
28
|
-
"version": "0.4.
|
|
28
|
+
"version": "0.4.5-alpha.0"
|
|
29
29
|
}
|