This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-06-06
Channels
- # aleph (15)
- # beginners (40)
- # boot (14)
- # cider (90)
- # cljs-dev (132)
- # cljsrn (25)
- # clojars (7)
- # clojure (188)
- # clojure-chicago (4)
- # clojure-dusseldorf (1)
- # clojure-greece (9)
- # clojure-italy (43)
- # clojure-russia (16)
- # clojure-sg (7)
- # clojure-spec (39)
- # clojure-uk (81)
- # clojurescript (170)
- # component (5)
- # core-async (7)
- # cursive (49)
- # data-science (65)
- # datascript (3)
- # datomic (27)
- # graphql (3)
- # hoplon (4)
- # instaparse (56)
- # klipse (129)
- # leiningen (1)
- # lumo (28)
- # off-topic (4)
- # om (15)
- # onyx (54)
- # overtone (7)
- # pedestal (7)
- # re-frame (9)
- # reagent (72)
- # ring (33)
- # ring-swagger (2)
- # spacemacs (1)
- # untangled (19)
- # vim (2)
- # yada (12)
my post-mutation touches a bunch of stuff in the app-state that i'd like to trigger re-renders for, but since the :post-mutation
parameter just takes a mutation symbol instead of a query expression i'm not sure how to tell the reconciler what keywords i'm dirtying
so, i notice that the solutions in the "putting it together" portion of the dev-guide actually behave the same way - on page refresh, they don't show the data loaded from the server until you trigger a render through the text field's :onChange
- i guess this is why df/load
is the preferred method?
@adamvh So, load-data
allows for a general query, but once I identified the real needs it was less useful (see the white-board YouTube video): https://youtu.be/mT4jJHf929Q?list=PLVi9lDx-4C_T_gsmBQ_2gztvk6h_Usw6R
but if i use load i basically have to send the server my root component's (or some component's) entire query, righty?
you should always be using defui to write your queries, or you don’t get normalization…even with load-data
it’s too easy to get lost in the weeds of syntax until you understand how to think about the database and loading
as it stands what i'm having trouble getting past is a perceived super-tight coupling between what my ui data looks like and what i'm sending to the server
short answer: (load :questions Question)
means “load something using the made-up root keyword :questions
that are of type Question.