@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.
- package/dist/components/SearchResultWidget/SearchResultWidget.d.ts.map +1 -1
- package/dist/sledge-react-instant-search.cjs +1 -1
- package/dist/sledge-react-instant-search.cjs.map +1 -1
- package/dist/sledge-react-instant-search.js +6 -5
- package/dist/sledge-react-instant-search.js.map +1 -1
- package/package.json +1 -1
|
@@ -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
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
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") {
|