instantsearch.js 4.56.3 → 4.56.4

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.
@@ -4,5 +4,5 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
- var _default = '4.56.3';
7
+ var _default = '4.56.4';
8
8
  exports.default = _default;
@@ -51,7 +51,9 @@ var createRouterMiddleware = function createRouterMiddleware() {
51
51
  subscribe: function subscribe() {
52
52
  instantSearchInstance._initialUiState = _objectSpread(_objectSpread({}, initialUiState), stateMapping.routeToState(router.read()));
53
53
  router.onUpdate(function (route) {
54
- instantSearchInstance.setUiState(stateMapping.routeToState(route));
54
+ if (instantSearchInstance.mainIndex.getWidgets().length > 0) {
55
+ instantSearchInstance.setUiState(stateMapping.routeToState(route));
56
+ }
55
57
  });
56
58
  },
57
59
  started: function started() {
@@ -1,4 +1,4 @@
1
- /*! InstantSearch.js 4.56.3 | © Algolia, Inc. and contributors; MIT License | https://github.com/algolia/instantsearch.js */
1
+ /*! InstantSearch.js 4.56.4 | © Algolia, Inc. and contributors; MIT License | https://github.com/algolia/instantsearch.js */
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
4
4
  typeof define === 'function' && define.amd ? define(factory) :
@@ -13498,7 +13498,9 @@
13498
13498
  subscribe: function subscribe() {
13499
13499
  instantSearchInstance._initialUiState = _objectSpread2(_objectSpread2({}, initialUiState), stateMapping.routeToState(router.read()));
13500
13500
  router.onUpdate(function (route) {
13501
- instantSearchInstance.setUiState(stateMapping.routeToState(route));
13501
+ if (instantSearchInstance.mainIndex.getWidgets().length > 0) {
13502
+ instantSearchInstance.setUiState(stateMapping.routeToState(route));
13503
+ }
13502
13504
  });
13503
13505
  },
13504
13506
  started: function started() {
@@ -14047,7 +14049,7 @@
14047
14049
  };
14048
14050
  }
14049
14051
 
14050
- var version$1 = '4.56.3';
14052
+ var version$1 = '4.56.4';
14051
14053
 
14052
14054
  var withUsage$r = createDocumentationMessageGenerator({
14053
14055
  name: 'instantsearch'