react-instantsearch-hooks
Advanced tools
Comparing version 6.21.0 to 6.21.1
@@ -89,5 +89,13 @@ "use strict"; | ||
if (widget.getWidgetRenderState) { | ||
var _widget$getWidgetSear; | ||
// The helper exists because we've started InstantSearch. | ||
var helper = parentIndex.getHelper(); | ||
var results = parentIndex.getResults() || (0, _createSearchResults.createSearchResults)(helper.state); | ||
var results = // On SSR, we get the results injected on the Index. | ||
parentIndex.getResults() || // On the browser, we create fallback results based on the widget's | ||
// `getWidgetSearchParameters()` method to inject the initial UI state, | ||
// or fall back to the helper state. | ||
(0, _createSearchResults.createSearchResults)(((_widget$getWidgetSear = widget.getWidgetSearchParameters) === null || _widget$getWidgetSear === void 0 ? void 0 : _widget$getWidgetSear.call(widget, helper.state, { | ||
uiState: parentIndex.getWidgetUiState({})[parentIndex.getIndexId()] | ||
})) || helper.state); | ||
var scopedResults = parentIndex.getScopedResults().map(function (scopedResult) { | ||
@@ -94,0 +102,0 @@ var fallbackResults = scopedResult.indexId === parentIndex.getIndexId() ? results : (0, _createSearchResults.createSearchResults)(scopedResult.helper.state); |
@@ -7,3 +7,3 @@ "use strict"; | ||
exports.default = void 0; | ||
var _default = '6.21.0'; | ||
var _default = '6.21.1'; | ||
exports.default = _default; |
@@ -71,5 +71,13 @@ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty"; | ||
if (widget.getWidgetRenderState) { | ||
var _widget$getWidgetSear; | ||
// The helper exists because we've started InstantSearch. | ||
var helper = parentIndex.getHelper(); | ||
var results = parentIndex.getResults() || createSearchResults(helper.state); | ||
var results = // On SSR, we get the results injected on the Index. | ||
parentIndex.getResults() || // On the browser, we create fallback results based on the widget's | ||
// `getWidgetSearchParameters()` method to inject the initial UI state, | ||
// or fall back to the helper state. | ||
createSearchResults(((_widget$getWidgetSear = widget.getWidgetSearchParameters) === null || _widget$getWidgetSear === void 0 ? void 0 : _widget$getWidgetSear.call(widget, helper.state, { | ||
uiState: parentIndex.getWidgetUiState({})[parentIndex.getIndexId()] | ||
})) || helper.state); | ||
var scopedResults = parentIndex.getScopedResults().map(function (scopedResult) { | ||
@@ -76,0 +84,0 @@ var fallbackResults = scopedResult.indexId === parentIndex.getIndexId() ? results : createSearchResults(scopedResult.helper.state); |
@@ -1,2 +0,2 @@ | ||
declare const _default: "6.21.0"; | ||
declare const _default: "6.21.1"; | ||
export default _default; |
@@ -1,1 +0,1 @@ | ||
export default '6.21.0'; | ||
export default '6.21.1'; |
{ | ||
"name": "react-instantsearch-hooks", | ||
"version": "6.21.0", | ||
"version": "6.21.1", | ||
"description": "⚡ Lightning-fast search for React, by Algolia", | ||
@@ -5,0 +5,0 @@ "source": "src/index.ts", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2548036
14209