homeflowjs 1.0.56 → 1.0.57
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/package.json
CHANGED
@@ -44,19 +44,14 @@ const LoadMoreButton = (props) => {
|
|
44
44
|
setLoading(true);
|
45
45
|
dispatch(loadNext())
|
46
46
|
.then(() => {
|
47
|
-
setLoading(false);
|
48
47
|
const pageNumber = currentSearch?.page ? currentSearch?.page + 1 : 2;
|
49
48
|
const searchToLocal = { ...currentSearch, page: pageNumber };
|
49
|
+
|
50
|
+
setLoading(false);
|
50
51
|
addSearchToLocalStorage(searchToLocal);
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
// By doing that we avoid links have wrong page numbers
|
55
|
-
// e.g. when you are on page-2, the url updates first and then change it for following page
|
56
|
-
setTimeout(() => {
|
57
|
-
setTargetURL(window.location.href);
|
58
|
-
}, 200);
|
59
|
-
})
|
52
|
+
setTargetURL(window.location.href);
|
53
|
+
return false;
|
54
|
+
});
|
60
55
|
return false;
|
61
56
|
}
|
62
57
|
|