@steroidsjs/core 2.2.6 → 2.2.7

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.
@@ -90,6 +90,7 @@ function useDataProvider(config) {
90
90
  var delayTimerRef = react_1.useRef(null);
91
91
  var isAutoFetchedRef = react_1.useRef(false);
92
92
  var prevQuery = react_use_1.usePrevious(config.query);
93
+ var prevParams = react_use_1.usePrevious(dataProvider.params);
93
94
  react_1.useEffect(function () {
94
95
  var fetchRemote = function (isAuto) { return __awaiter(_this, void 0, void 0, function () {
95
96
  var searchHandler, result, newItems;
@@ -132,7 +133,7 @@ function useDataProvider(config) {
132
133
  clearTimeout(delayTimerRef.current);
133
134
  }
134
135
  // Changed query logic
135
- if (prevQuery !== config.query) {
136
+ if (prevQuery !== config.query || prevParams !== dataProvider.params) {
136
137
  // Search with delay
137
138
  delayTimerRef.current = setTimeout(fetchRemote, autoComplete.delay);
138
139
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steroidsjs/core",
3
- "version": "2.2.6",
3
+ "version": "2.2.7",
4
4
  "description": "",
5
5
  "author": "Vladimir Kozhin <hello@kozhindev.com>",
6
6
  "repository": {