react-instantsearch 7.15.6 → 7.15.8
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.
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
var React__default = 'default' in React ? React['default'] : React;
|
|
9
9
|
|
|
10
|
-
var version = '7.15.
|
|
10
|
+
var version = '7.15.8';
|
|
11
11
|
|
|
12
12
|
// Copyright Joyent, Inc. and other Node contributors.
|
|
13
13
|
//
|
|
@@ -11697,10 +11697,14 @@
|
|
|
11697
11697
|
var insightsClientWithLocalCredentials = insightsClient;
|
|
11698
11698
|
if (isModernInsightsClient(insightsClient)) {
|
|
11699
11699
|
insightsClientWithLocalCredentials = function insightsClientWithLocalCredentials(method, payload) {
|
|
11700
|
+
var _getAppIdAndApiKey3 = getAppIdAndApiKey(instantSearchInstance.client),
|
|
11701
|
+
_getAppIdAndApiKey4 = _slicedToArray$7(_getAppIdAndApiKey3, 2),
|
|
11702
|
+
latestAppId = _getAppIdAndApiKey4[0],
|
|
11703
|
+
latestApiKey = _getAppIdAndApiKey4[1];
|
|
11700
11704
|
var extraParams = {
|
|
11701
11705
|
headers: {
|
|
11702
|
-
'X-Algolia-Application-Id':
|
|
11703
|
-
'X-Algolia-API-Key':
|
|
11706
|
+
'X-Algolia-Application-Id': latestAppId,
|
|
11707
|
+
'X-Algolia-API-Key': latestApiKey
|
|
11704
11708
|
}
|
|
11705
11709
|
};
|
|
11706
11710
|
|
|
@@ -13433,7 +13437,7 @@
|
|
|
13433
13437
|
};
|
|
13434
13438
|
}
|
|
13435
13439
|
|
|
13436
|
-
var version$3 = '4.78.
|
|
13440
|
+
var version$3 = '4.78.3';
|
|
13437
13441
|
|
|
13438
13442
|
function _typeof$q(o) {
|
|
13439
13443
|
"@babel/helpers - typeof";
|
|
@@ -20372,6 +20376,11 @@
|
|
|
20372
20376
|
}
|
|
20373
20377
|
}
|
|
20374
20378
|
search.addListener('render', handleRender);
|
|
20379
|
+
|
|
20380
|
+
// Force setting results to mitigate potential race conditions where
|
|
20381
|
+
// render listener is added after search results have been returned.
|
|
20382
|
+
// This edge case is currently not covered by the tests.
|
|
20383
|
+
handleRender();
|
|
20375
20384
|
return function () {
|
|
20376
20385
|
search.removeListener('render', handleRender);
|
|
20377
20386
|
};
|
|
@@ -20458,6 +20467,11 @@
|
|
|
20458
20467
|
setRenderState(search.renderState);
|
|
20459
20468
|
}
|
|
20460
20469
|
search.addListener('render', handleRender);
|
|
20470
|
+
|
|
20471
|
+
// Force setting state to mitigate potential race conditions where
|
|
20472
|
+
// render listener is added after search results have been returned.
|
|
20473
|
+
// This edge case is currently not covered by the tests.
|
|
20474
|
+
handleRender();
|
|
20461
20475
|
return function () {
|
|
20462
20476
|
search.removeListener('render', handleRender);
|
|
20463
20477
|
};
|