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.
- package/dist/cjs/lib/useWidget.js +2 -2
- package/dist/cjs/version.js +1 -1
- package/dist/es/lib/useWidget.js +2 -2
- package/dist/es/version.d.ts +1 -1
- package/dist/es/version.js +1 -1
- package/dist/umd/ReactInstantSearchCore.js +536 -27
- package/dist/umd/ReactInstantSearchCore.js.map +1 -1
- package/dist/umd/ReactInstantSearchCore.min.js +1 -1
- package/dist/umd/ReactInstantSearchCore.min.js.map +1 -1
- package/package.json +4 -4
|
@@ -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 (!
|
|
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,
|
|
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
|
}
|
package/dist/cjs/version.js
CHANGED
package/dist/es/lib/useWidget.js
CHANGED
|
@@ -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 (!
|
|
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,
|
|
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
|
}
|
package/dist/es/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "7.7.
|
|
1
|
+
declare const _default: "7.7.2";
|
|
2
2
|
export default _default;
|
package/dist/es/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default '7.7.
|
|
1
|
+
export default '7.7.2';
|