@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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @betterstore/sdk
2
2
 
3
+ ## 0.2.27
4
+
5
+ ### Patch Changes
6
+
7
+ - bug fix
8
+
3
9
  ## 0.2.26
4
10
 
5
11
  ### Patch Changes
package/dist/index.cjs.js CHANGED
@@ -32571,8 +32571,9 @@ function AddressInput() {
32571
32571
  }
32572
32572
  }), [form, isValidating]);
32573
32573
  React.useEffect(() => {
32574
- if (!open)
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, form]);
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 (!open)
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, form]);
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 },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@betterstore/react",
3
- "version": "0.2.26",
3
+ "version": "0.2.27",
4
4
  "description": "E-commerce for Developers",
5
5
  "private": false,
6
6
  "publishConfig": {