@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.js CHANGED
@@ -14379,11 +14379,7 @@ var FormikWrap = function FormikWrap(_ref) {
14379
14379
  };
14380
14380
  useEffect(function () {
14381
14381
  revalidate();
14382
- clientI18nInstance.on("languageChanged", revalidate);
14383
- return function () {
14384
- return clientI18nInstance.off("languageChanged", revalidate);
14385
- };
14386
- }, [dataUpdateCount]);
14382
+ }, [clientI18nInstance.language, dataUpdateCount]);
14387
14383
  var syncValuesWithLocalStorage = function syncValuesWithLocalStorage() {
14388
14384
  return preserveValues && !isEmptyValues(values) && setWithExpiry("".concat(formId, "/values"), values);
14389
14385
  };