This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-11-07
Channels
- # aleph (11)
- # aws (8)
- # bangalore-clj (4)
- # beginners (32)
- # boot (48)
- # cider (2)
- # cljs-dev (57)
- # cljsrn (4)
- # clojars (22)
- # clojure (67)
- # clojure-argentina (2)
- # clojure-austin (9)
- # clojure-berlin (1)
- # clojure-brasil (15)
- # clojure-france (1)
- # clojure-italy (10)
- # clojure-russia (23)
- # clojure-spec (6)
- # clojure-uk (48)
- # clojurescript (143)
- # cursive (15)
- # datomic (30)
- # emacs (18)
- # hoplon (26)
- # instaparse (1)
- # leiningen (1)
- # om (21)
- # om-next (9)
- # parinfer (3)
- # pedestal (3)
- # planck (2)
- # re-frame (53)
- # reagent (4)
- # ring (5)
- # spacemacs (1)
- # specter (10)
- # sql (16)
- # untangled (19)
- # vim (11)
- # yada (2)
Are you guys open for a pull request so I can set the shared property of the reconciler?
@adambros Ooops. Yeah, the way return handler is written is wrong. My bad. We're in the middle of a swap at that time, so swapping is going to break.
@mitchelkuijpers We’ve had a lot of success putting shared state in the app db.
@gardnervickers we have some global stuff like a certain base url and in which product we are (we are writing a plugin for multiple products) and now we just reference global values, but setting a shared value on the reconciler is way nicer. Then you can use om/shared
in your components to reference them
And it is pretty handy with devcards ^^
@mitchelkuijpers sure, but I think DNolen deprecated that feature in favor of link queries
We had a similar setup, where there was some global state we wanted to read. Putting it under the root of the DB and just querying for it like [:my/thing ‘_]
worked well, and I couldn’t figure out a case where shared
makes more sense.
Oh ok.. maybe not a good idea to add support for it then
Also I had a question about using the new load
to load a simple property from the server like [:foo]
I currently still use load-data
for this
because of the required SubqueryClass
@gardnervickers We mostly used it because of reasons 😛
:shared
is not deprecated, and it serves different use cases than link queries
Then I will create a pull request 🙂 thnx @anmonteiro
@mitchelkuijpers merged and I pushed a SNAPSHOT update to clojars