Skip to content

Commit

Permalink
quick hack fix for unresponsive page
Browse files Browse the repository at this point in the history
as mentioned in #34 some of the solutions take too much time to load, so
limit it to 1000 solutions before a more appropriate lazy pagination
solution is implemented
  • Loading branch information
oxalorg committed Jul 12, 2021
1 parent 2bfafdd commit af4b0fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/solution.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
data (fetch/get (solutions-url id))]
(-> data
(.then (fn [resp]
(reset! solutions (js->clj (:body resp))))))))
(reset! solutions (take 1000 (js->clj (:body resp)))))))))

(defn list-view [{:keys [path-params]}]
(let [id (js/parseInt (:id path-params))]
Expand Down

0 comments on commit af4b0fa

Please sign in to comment.