@innoways/hooks 6.2.10 → 6.3.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/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # Change Log
2
2
 
3
+ ## 6.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Fixed token issues added version 6.3.0
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies
12
+ - @innoways/utils@6.3.0
13
+
3
14
  ## 6.2.10
4
15
 
5
16
  ### Patch Changes
package/dist/index.js CHANGED
@@ -1230,11 +1230,11 @@ var useCountryStateCityOptions = function useCountryStateCityOptions(selectedOpt
1230
1230
  useEffect(function () {
1231
1231
  if (countryConfig) {
1232
1232
  fetchFnJsonKey({
1233
- config: countryConfig,
1233
+ config: _objectSpread({}, countryConfig),
1234
1234
  dataHandler: setCountryOption
1235
1235
  });
1236
1236
  }
1237
- }, [countryConfig]);
1237
+ }, [JSON.stringify(countryConfig)]);
1238
1238
  useEffect(function () {
1239
1239
  if (selectedOptions.country && stateConfig) {
1240
1240
  var temp = _objectSpread({}, stateConfig);
@@ -1245,7 +1245,7 @@ var useCountryStateCityOptions = function useCountryStateCityOptions(selectedOpt
1245
1245
  dataHandler: setStateOption
1246
1246
  });
1247
1247
  }
1248
- }, [selectedOptions.country, stateConfig]);
1248
+ }, [selectedOptions.country, JSON.stringify(stateConfig)]);
1249
1249
  useEffect(function () {
1250
1250
  if (selectedOptions.state && stateConfig && cityConfig) {
1251
1251
  var temp = _objectSpread({}, cityConfig);
@@ -1264,7 +1264,7 @@ var useCountryStateCityOptions = function useCountryStateCityOptions(selectedOpt
1264
1264
  dataHandler: setCityOption
1265
1265
  });
1266
1266
  }
1267
- }, [selectedOptions.country, countryConfig, selectedOptions.state, stateConfig, cityConfig]);
1267
+ }, [selectedOptions.country, JSON.stringify(countryConfig), selectedOptions.state, JSON.stringify(stateConfig), JSON.stringify(cityConfig)]);
1268
1268
  return {
1269
1269
  countryOption: countryOption,
1270
1270
  stateOption: stateOption,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@innoways/hooks",
3
- "version": "6.2.10",
3
+ "version": "6.3.0",
4
4
  "description": "drip-form通用hooks",
5
5
  "keywords": [
6
6
  "hooks",
@@ -31,7 +31,7 @@
31
31
  },
32
32
  "dependencies": {
33
33
  "@babel/runtime": "^7.10.2",
34
- "@innoways/utils": "^6.2.10",
34
+ "@innoways/utils": "^6.3.0",
35
35
  "ahooks": "^2.10.12",
36
36
  "ajv": "^8.6.2",
37
37
  "immer": "^9.0.5",