This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-01-03
Channels
- # aleph (1)
- # beginners (99)
- # boot (16)
- # cider (35)
- # cljs-dev (46)
- # cljsrn (7)
- # clojure (152)
- # clojure-austin (7)
- # clojure-dusseldorf (8)
- # clojure-italy (1)
- # clojure-uk (7)
- # clojurescript (3)
- # core-async (12)
- # css (8)
- # cursive (18)
- # datascript (2)
- # datomic (19)
- # defnpodcast (6)
- # duct (3)
- # editors (8)
- # emacs (8)
- # figwheel (1)
- # fulcro (20)
- # hoplon (18)
- # jobs-discuss (5)
- # lein-figwheel (1)
- # luminus (3)
- # lumo (19)
- # off-topic (15)
- # onyx (9)
- # parinfer (2)
- # planck (6)
- # portland-or (7)
- # re-frame (4)
- # reagent (7)
- # remote-jobs (1)
- # ring (6)
- # ring-swagger (4)
- # spacemacs (10)
- # specter (3)
- # unrepl (131)
@tony.kay a list of list items, they have a same dropdown ui component wtih same dropdown's options, I want to know which is a better way to define the :query
in defsc list-item
to normalize db.
Now, I just pass a parent(list)-computed data (dropdown's options) to children (list-items) by using prim/computed
, so I just need normalize the data of the options once in Root (list).
https://github.com/fulcrologic/fulcro/blob/develop/src/main/fulcro/ui/bootstrap3.cljc#L491
The query for a component is always just the data it needs…e.g. :item/id
, :item/value
, :item/label
How to make the Dropdown's search work. I try {:search (clj->js (fn [] ...))}
, but don't work.
Anything against giving the HTML body tag an id and use it as app root?
Appears to work fine (tried it in fulcro-template).
@maridonkers the problem with setting your entire body as the app is that in case anything adds something to your body (like developer tools or any kind of plugin you want) it will break the react tree since you are changing elements out of it's control, so I would recommend don't doing it, is there any limitation you are having using the internal element?
@wilkerlucio Thanks, won't go that way (app on body tag). Rationale was Bulma instructions on section reading "Use sections as direct children of body." But that doesn't seem an actual limitation so I'll use a div for app.
how does df/lazily-loaded
and its :ui/fetch-state
property on entities relate to network loading markers?