react-instantsearch-core 7.7.0 → 7.7.2

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.
@@ -38,7 +38,7 @@ function useWidget(_ref) {
38
38
 
39
39
  // Scenario 1: the widget is added for the first time.
40
40
  if (!cleanupTimerRef.current) {
41
- if (!shouldAddWidgetEarly) {
41
+ if (!shouldSsr) {
42
42
  parentIndex.addWidgets([widget]);
43
43
  }
44
44
  }
@@ -75,7 +75,7 @@ function useWidget(_ref) {
75
75
  });
76
76
  });
77
77
  };
78
- }, [parentIndex, widget, shouldAddWidgetEarly, search, props]);
78
+ }, [parentIndex, widget, shouldSsr, search, props]);
79
79
  if (shouldAddWidgetEarly || (waitingForResultsRef === null || waitingForResultsRef === void 0 ? void 0 : (_waitingForResultsRef = waitingForResultsRef.current) === null || _waitingForResultsRef === void 0 ? void 0 : _waitingForResultsRef.status) === 'pending') {
80
80
  parentIndex.addWidgets([widget]);
81
81
  }
@@ -4,5 +4,5 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
- var _default = '7.7.0';
7
+ var _default = '7.7.2';
8
8
  exports.default = _default;
@@ -32,7 +32,7 @@ export function useWidget(_ref) {
32
32
 
33
33
  // Scenario 1: the widget is added for the first time.
34
34
  if (!cleanupTimerRef.current) {
35
- if (!shouldAddWidgetEarly) {
35
+ if (!shouldSsr) {
36
36
  parentIndex.addWidgets([widget]);
37
37
  }
38
38
  }
@@ -69,7 +69,7 @@ export function useWidget(_ref) {
69
69
  });
70
70
  });
71
71
  };
72
- }, [parentIndex, widget, shouldAddWidgetEarly, search, props]);
72
+ }, [parentIndex, widget, shouldSsr, search, props]);
73
73
  if (shouldAddWidgetEarly || (waitingForResultsRef === null || waitingForResultsRef === void 0 ? void 0 : (_waitingForResultsRef = waitingForResultsRef.current) === null || _waitingForResultsRef === void 0 ? void 0 : _waitingForResultsRef.status) === 'pending') {
74
74
  parentIndex.addWidgets([widget]);
75
75
  }
@@ -1,2 +1,2 @@
1
- declare const _default: "7.7.0";
1
+ declare const _default: "7.7.2";
2
2
  export default _default;
@@ -1 +1 @@
1
- export default '7.7.0';
1
+ export default '7.7.2';