@sledge-app/react-instant-search 0.0.84 → 0.0.85

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.
@@ -2864,11 +2864,12 @@ const SearchResultWidget = (props) => {
2864
2864
  React__default.useEffect(() => {
2865
2865
  console.log("useEffect running");
2866
2866
  console.log("previousState", previousState);
2867
- if (!(isRenderApp == null ? void 0 : isRenderApp.instantSearch))
2868
- return;
2869
- const searchParams2 = new URLSearchParams(document.location.search);
2870
- setKeyword((searchParams2 == null ? void 0 : searchParams2.get(queryKeyword)) || "");
2871
- handleSettings(localStorage.getItem(LOCAL_STORAGE_KEY.INSTANT_SEARCH_SETTING) || "");
2867
+ setTimeout(() => {
2868
+ const searchParams2 = new URLSearchParams(document.location.search);
2869
+ setKeyword((searchParams2 == null ? void 0 : searchParams2.get(queryKeyword)) || "");
2870
+ handleSettings(localStorage.getItem(LOCAL_STORAGE_KEY.INSTANT_SEARCH_SETTING) || "");
2871
+ console.log("setTimeout");
2872
+ }, 1500);
2872
2873
  }, []);
2873
2874
  React__default.useEffect(() => {
2874
2875
  if (Boolean(previousState && (previousState == null ? void 0 : previousState.keyword) !== keyword) && layoutType === "default") {