instantsearch.js 4.38.0 → 4.38.1

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.
@@ -466,6 +466,17 @@ declare class BrowserHistory<TRouteState> implements Router<TRouteState> {
466
466
  * It needs to avoid pushing state to history in case of back/forward in browser
467
467
  */
468
468
  private shouldPushState;
469
+ /**
470
+ * Indicates whether the history router is disposed or not.
471
+ */
472
+ private isDisposed;
473
+ /**
474
+ * Indicates the window.history.length before the last call to
475
+ * window.history.pushState (called in `write`).
476
+ * It allows to determine if a `pushState` has been triggered elsewhere,
477
+ * and thus to prevent the `write` method from calling `pushState`.
478
+ */
479
+ private latestAcknowledgedHistory;
469
480
  /**
470
481
  * Initializes a new storage provider that syncs the search state to the URL
471
482
  * using web APIs (`window.location.pushState` and `onpopstate` event).
@@ -466,6 +466,17 @@ declare class BrowserHistory<TRouteState> implements Router<TRouteState> {
466
466
  * It needs to avoid pushing state to history in case of back/forward in browser
467
467
  */
468
468
  private shouldPushState;
469
+ /**
470
+ * Indicates whether the history router is disposed or not.
471
+ */
472
+ private isDisposed;
473
+ /**
474
+ * Indicates the window.history.length before the last call to
475
+ * window.history.pushState (called in `write`).
476
+ * It allows to determine if a `pushState` has been triggered elsewhere,
477
+ * and thus to prevent the `write` method from calling `pushState`.
478
+ */
479
+ private latestAcknowledgedHistory;
469
480
  /**
470
481
  * Initializes a new storage provider that syncs the search state to the URL
471
482
  * using web APIs (`window.location.pushState` and `onpopstate` event).