This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-07-12
Channels
- # aleph (10)
- # beginners (79)
- # boot (81)
- # chestnut (3)
- # cider (9)
- # cljs-dev (336)
- # cljsrn (17)
- # clojure (121)
- # clojure-boston (1)
- # clojure-italy (4)
- # clojure-nl (1)
- # clojure-russia (218)
- # clojure-spec (32)
- # clojure-uk (98)
- # clojurescript (109)
- # cloverage (1)
- # core-async (5)
- # cursive (17)
- # datascript (15)
- # datomic (38)
- # editors (4)
- # emacs (6)
- # graphql (1)
- # hoplon (140)
- # instaparse (1)
- # jobs (2)
- # klipse (1)
- # leiningen (4)
- # lumo (2)
- # mount (103)
- # off-topic (3)
- # om (8)
- # onyx (19)
- # parinfer (32)
- # pedestal (3)
- # precept (32)
- # re-frame (33)
- # reagent (24)
- # remote-jobs (11)
- # rum (1)
- # spacemacs (1)
- # specter (37)
- # unrepl (4)
- # untangled (43)
- # vim (11)
@sundarj it will just normalize a tree of data to the default Om.next db format. It does the opposite of generating trees, it generates a graph.
db->tree
will generate your UI tree (or a subtree) depending on the query you pass into it.
yeah sorry about that, i was being a bit fast and loose with my terminology there. i managed to get it working in the end (with a hefty dose of hammock & repl time): https://github.com/sundarj/hiki/commit/99e1b8e4639f2a783d3a5286bbe61f1dff8bf05d
Cool, we've found (merge-with merge
to work well for most cases where we want to merge the results of tree->db
back into your app state.
https://github.com/sundarj/hiki/commit/f33c5c3db3087c19c263671da9cbc68b8b5346ce dont need merge-with
since it's just merging into {:playlists nil}
, but this is much nicer. thanks!
hello friends, can someone explain to me what is a typical use case for (om/react-type some-component)
?