@betterstore/react 0.2.26 → 0.2.27
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/CHANGELOG.md +6 -0
- package/dist/index.cjs.js +4 -2
- package/dist/index.mjs +4 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.cjs.js
CHANGED
|
@@ -32571,8 +32571,9 @@ function AddressInput() {
|
|
|
32571
32571
|
}
|
|
32572
32572
|
}), [form, isValidating]);
|
|
32573
32573
|
React.useEffect(() => {
|
|
32574
|
-
if (
|
|
32574
|
+
if (open)
|
|
32575
32575
|
return;
|
|
32576
|
+
console.log("Validation Func Rerun");
|
|
32576
32577
|
const isAddressInvalid = form.getFieldState("address").invalid;
|
|
32577
32578
|
if (isAddressInvalid) {
|
|
32578
32579
|
form.setError("address", {
|
|
@@ -32583,7 +32584,8 @@ function AddressInput() {
|
|
|
32583
32584
|
else {
|
|
32584
32585
|
form.clearErrors("address");
|
|
32585
32586
|
}
|
|
32586
|
-
}, [open
|
|
32587
|
+
}, [open]);
|
|
32588
|
+
console.log("Address Input Rerendered");
|
|
32587
32589
|
return (React.createElement("div", { className: "w-full md:col-span-2" },
|
|
32588
32590
|
React.createElement(Dialog, { open: open, onOpenChange: setOpen },
|
|
32589
32591
|
React.createElement(DialogTrigger, { asChild: true },
|
package/dist/index.mjs
CHANGED
|
@@ -32548,8 +32548,9 @@ function AddressInput() {
|
|
|
32548
32548
|
}
|
|
32549
32549
|
}), [form, isValidating]);
|
|
32550
32550
|
useEffect(() => {
|
|
32551
|
-
if (
|
|
32551
|
+
if (open)
|
|
32552
32552
|
return;
|
|
32553
|
+
console.log("Validation Func Rerun");
|
|
32553
32554
|
const isAddressInvalid = form.getFieldState("address").invalid;
|
|
32554
32555
|
if (isAddressInvalid) {
|
|
32555
32556
|
form.setError("address", {
|
|
@@ -32560,7 +32561,8 @@ function AddressInput() {
|
|
|
32560
32561
|
else {
|
|
32561
32562
|
form.clearErrors("address");
|
|
32562
32563
|
}
|
|
32563
|
-
}, [open
|
|
32564
|
+
}, [open]);
|
|
32565
|
+
console.log("Address Input Rerendered");
|
|
32564
32566
|
return (React__default.createElement("div", { className: "w-full md:col-span-2" },
|
|
32565
32567
|
React__default.createElement(Dialog, { open: open, onOpenChange: setOpen },
|
|
32566
32568
|
React__default.createElement(DialogTrigger, { asChild: true },
|