@sledge-app/react-instant-search 2.0.52 → 2.0.53

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.
@@ -10490,18 +10490,19 @@ const ResultProduct = React__default.memo((props) => {
10490
10490
  if (!clickedTabIndexId)
10491
10491
  return;
10492
10492
  const { isLoadMore: isLoadMore2 = false, isReplaceData = false, onSearch } = props2;
10493
+ const searchParams2 = new URLSearchParams(document.location.search);
10493
10494
  if (isReplaceData) {
10494
10495
  setCurrentPage(1);
10495
10496
  setSearchResult([]);
10496
- searchParams.set(queryPage, String(1));
10497
- searchParams.set(queryLimit, String(clickedLimitId));
10497
+ searchParams2.set(queryPage, String(1));
10498
+ searchParams2.set(queryLimit, String(clickedLimitId));
10498
10499
  if (!objectPresent(previewSettings))
10499
- window.history.pushState(null, "", `${document.location.pathname}?${searchParams.toString()}`);
10500
+ window.history.pushState(null, "", `${document.location.pathname}?${searchParams2.toString()}`);
10500
10501
  } else {
10501
10502
  if (!isLimitIdAvailable) {
10502
- searchParams.set(queryLimit, String(valueDefaultLimit));
10503
+ searchParams2.set(queryLimit, String(valueDefaultLimit));
10503
10504
  if (!objectPresent(previewSettings))
10504
- window.history.pushState(null, "", `${document.location.pathname}?${searchParams.toString()}`);
10505
+ window.history.pushState(null, "", `${document.location.pathname}?${searchParams2.toString()}`);
10505
10506
  }
10506
10507
  }
10507
10508
  setIsLoading(isReplaceData ? true : !isLoadMore2);