* Update the default number of journal entries shown * Get 7 journal entries per load while infinite scrolling Co-authored-by: Tienson Qin <[email protected]>
@@ -38,5 +38,4 @@ charlie/
/.preprocessor-cljs
docker
android/app/src/main/assets/capacitor.plugin.json
-ios/App/App/capacitor.config.json
-yarn.lock
+ios/App/App/capacitor.config.json
@@ -559,7 +559,7 @@
(defn load-more-journals!
[]
(when (has-more-journals?)
- (state/update-state! :journals-length inc)))
+ (state/set-journals-length! (+ (:journals-length @state/state) 7))))
(defn update-public-attribute!
[page-name value]
@@ -137,7 +137,7 @@
(defn go-to-journals!
- (state/set-journals-length! 1)
+ (state/set-journals-length! 3)
(let [route (if (state/custom-home-page?)
:all-journals
:home)]
@@ -49,7 +49,7 @@
:draw? false
:db/restoring? nil
- :journals-length 2
+ :journals-length 3
:search/q ""
:search/mode :global