@wix/form-public 0.20.0 → 0.22.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 CHANGED
@@ -30010,8 +30010,14 @@ var Form2 = ({
30010
30010
  }
30011
30011
  };
30012
30012
  const i18n2 = initI18n({ locale: siteConfig.locale.languageCode });
30013
- const mappedFieldProps = mapFieldProps(fields, FIELD_PROP_MAP);
30014
- const mappedFieldTypes = mapFieldTypes(mappedFieldProps, FIELD_TYPE_MAP);
30013
+ const mappedFieldProps = useMemo(
30014
+ () => mapFieldProps(fields, FIELD_PROP_MAP),
30015
+ [fields]
30016
+ );
30017
+ const mappedFieldTypes = useMemo(
30018
+ () => mapFieldTypes(mappedFieldProps, FIELD_TYPE_MAP),
30019
+ [mappedFieldProps]
30020
+ );
30015
30021
  return /* @__PURE__ */ jsx(
30016
30022
  FormViewerStatic,
30017
30023
  {