@panneau/core 1.0.0-alpha.237 → 1.0.0-alpha.242
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/es/hooks.js +4 -1
- package/lib/hooks.js +4 -1
- package/package.json +2 -2
package/es/hooks.js
CHANGED
|
@@ -260,7 +260,10 @@ var useForm = function useForm() {
|
|
|
260
260
|
error: false
|
|
261
261
|
});
|
|
262
262
|
setResponse(resp);
|
|
263
|
-
|
|
263
|
+
|
|
264
|
+
if (onComplete !== null) {
|
|
265
|
+
onComplete(resp);
|
|
266
|
+
}
|
|
264
267
|
};
|
|
265
268
|
|
|
266
269
|
var finalPostForm = useCallback(function (postAction, postData) {
|
package/lib/hooks.js
CHANGED
|
@@ -295,7 +295,10 @@ var useForm = function useForm() {
|
|
|
295
295
|
error: false
|
|
296
296
|
});
|
|
297
297
|
setResponse(resp);
|
|
298
|
-
|
|
298
|
+
|
|
299
|
+
if (onComplete !== null) {
|
|
300
|
+
onComplete(resp);
|
|
301
|
+
}
|
|
299
302
|
};
|
|
300
303
|
|
|
301
304
|
var finalPostForm = react.useCallback(function (postAction, postData) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@panneau/core",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.242",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -114,5 +114,5 @@
|
|
|
114
114
|
"publishConfig": {
|
|
115
115
|
"access": "public"
|
|
116
116
|
},
|
|
117
|
-
"gitHead": "
|
|
117
|
+
"gitHead": "642186399b25e090f6fa3a210d14f195e2121a38"
|
|
118
118
|
}
|