🎉 Allow nested components

This commit is contained in:
Andrés Moya 2020-09-28 15:29:54 +02:00 committed by Alonso Torres
parent 736c9e7e8c
commit 483401f328
9 changed files with 573 additions and 369 deletions

View file

@ -25,7 +25,7 @@
(def index-by-id #(index-by :id %))
(defn remove-nil-vals
(defn without-nils
"Given a map, return a map removing key-value
pairs when value is `nil`."
[data]

View file

@ -52,7 +52,7 @@
(r/match->path match)
(let [uri (.parse goog.Uri (r/match->path match))
qdt (.createFromMap QueryData (-> qparams
(d/remove-nil-vals)
(d/without-nils)
(clj->js)))]
(.setQueryData ^js uri qdt)
(.toString ^js uri))))))