@bigbinary/neeto-form-frontend 2.0.4 → 2.0.5

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.cjs.js CHANGED
@@ -14442,11 +14442,7 @@ var FormikWrap = function FormikWrap(_ref) {
14442
14442
  };
14443
14443
  React$2.useEffect(function () {
14444
14444
  revalidate();
14445
- clientI18nInstance.on("languageChanged", revalidate);
14446
- return function () {
14447
- return clientI18nInstance.off("languageChanged", revalidate);
14448
- };
14449
- }, [dataUpdateCount]);
14445
+ }, [clientI18nInstance.language, dataUpdateCount]);
14450
14446
  var syncValuesWithLocalStorage = function syncValuesWithLocalStorage() {
14451
14447
  return preserveValues && !isEmptyValues(values) && setWithExpiry("".concat(formId, "/values"), values);
14452
14448
  };