@steroidsjs/core 2.2.96 → 2.2.97

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/hooks/useFetch.js CHANGED
@@ -102,7 +102,7 @@ function useFetch(rawConfig) {
102
102
  var _a = react_1.useState(exports.normalizeConfig(rawConfig)), config = _a[0], setConfig = _a[1];
103
103
  // Update config in state on raw config updated
104
104
  react_use_1.useUpdateEffect(function () {
105
- setConfig(rawConfig);
105
+ setConfig(exports.normalizeConfig(rawConfig));
106
106
  }, [rawConfig]);
107
107
  // Get preloaded data
108
108
  var configId = exports.getConfigId(config);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steroidsjs/core",
3
- "version": "2.2.96",
3
+ "version": "2.2.97",
4
4
  "description": "",
5
5
  "author": "Vladimir Kozhin <hello@kozhindev.com>",
6
6
  "repository": {