This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-04-21
Channels
- # aws (1)
- # aws-lambda (1)
- # beginners (27)
- # boot (16)
- # cider (1)
- # clara (54)
- # cljs-dev (4)
- # cljsjs (8)
- # cljsrn (25)
- # clojure (148)
- # clojure-dev (2)
- # clojure-finland (1)
- # clojure-france (18)
- # clojure-italy (10)
- # clojure-nl (3)
- # clojure-russia (27)
- # clojure-sg (2)
- # clojure-uk (17)
- # clojurebridge (6)
- # clojurescript (70)
- # core-async (1)
- # css (6)
- # cursive (35)
- # data-science (3)
- # datomic (22)
- # events (4)
- # jobs (18)
- # jobs-discuss (14)
- # leiningen (4)
- # lumo (22)
- # off-topic (20)
- # om (5)
- # om-next (1)
- # onyx (47)
- # pedestal (107)
- # re-frame (43)
- # reagent (1)
- # ring (2)
- # ring-swagger (2)
- # rum (18)
- # sql (15)
- # unrepl (4)
- # vim (61)
- # yada (3)
@danielstockton I'm not sure. React-key works fine and although it's been a while I believe I copied it from one of the examples on the wiki (I've never used Om core). But if it's changed I'd love to know.
I thought it changed from :react-key
to :key
from om to om.next but perhaps :react-key
still works too.
@pedroteixeira If I'm not mistaken, @qqq is using datascript with om next.
@pedroteixeira We're using datascript with om.next, and here's a whirlwind tour of what you have to do.
You have to implement your own merge
function, you can't use db->tree
and you'll need to stay away from set-query!
. A while ago I had to set the :migrate
reconciler option to nil
, I'm not sure if this is the case anymore, but it's what we're still doing.
Since we can't use set-query!
, we get "dynamic" queries by using state from our current route in our parser (reads/mutates), and this state can be passed to a remote by adjusting the query in the parser.
We're using datomic on the backend and we've gotten a lot of surprising wins.
@petterik I actually find I do this anyway, even not using datascript. I'm not sure set-query! even needs to be a thing.