This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-08-24
Channels
- # announcements (3)
- # beginners (128)
- # boot (2)
- # braveandtrue (97)
- # calva (13)
- # cider (4)
- # cljdoc (12)
- # cljs-dev (16)
- # clojure (78)
- # clojure-germany (8)
- # clojure-italy (5)
- # clojure-nl (1)
- # clojure-spec (59)
- # clojure-uk (29)
- # clojurescript (46)
- # core-async (9)
- # cursive (63)
- # data-science (3)
- # datomic (22)
- # devcards (1)
- # duct (7)
- # emacs (4)
- # flambo (2)
- # fulcro (37)
- # instaparse (6)
- # jobs-discuss (38)
- # juxt (1)
- # off-topic (35)
- # om-next (1)
- # parinfer (7)
- # re-frame (14)
- # reagent (6)
- # reitit (21)
- # rum (1)
- # shadow-cljs (74)
- # spacemacs (8)
- # specter (1)
- # sql (3)
- # testing (2)
- # unrepl (2)
- # yada (6)
Fulcro Inspect 1.0.3
(extension)/`2.2.2`(package) is out! This version uses state deltas to sync the app state, this adds a considerable performance gain for apps with big local dbs. Also adds a new button at the network layer, right after the Request
there is a Send to query
button that will select the Query
tab and fill the query using the selected request.
Can some tell me why my css not generate? I change the background color, but still not changed. Thank u
@veddha.riady: One way is to (injection/style-element {:component this})
in the root render. But I think that is for components that have queries, which yours don't. See http://book.fulcrologic.com/#ColocatedCSS for the other options, including that will work with the 'old way' that you are using.
@cjmurphy when i insert (css/upsert-css "my-css" root) in the end of my code, I got error "java.lang.RuntimeException : No such var: css/upsert-css" did i do something wrong?
Fuclro 2.6+: Use the fulcro-css.css-injection/upsert-css or fulcro-css.css-injection/style-element to embed the CSS.
From the book: (css/upsert-css "my-css" Root)
; NOTE: Use css-injection in Fulcro 2.6+
yeah i've use (injection/upsert-css "my-css" Root) but still got No such var injection
I think you are no longer supposed to include a special lib for css. Does your project only have one library for Fulcro?
i think i’ve found another typo in the developers guide - could someone double-check please? in the last snippet in 8.5.1 http://book.fulcrologic.com/#_node_specific_mutation, i believe field-name
should instead be :person/friends
i.e. the add-friend** example should read:
(defn add-friend**
"Add a friend to an existing person in the client database."
[app-state person-id friend-id]
(update-in app-state [:person/by-id person-id :person/friends] (fnil conj []) (person-ident friend-id)))
(defmutation add-friend [{:keys [source-person-id target-id]}]
(action [{:keys [state]}]
(swap! state add-friend** source-person-id target-id)))
the sources are here: https://github.com/fulcrologic/fulcro/blob/develop/DevelopersGuide.adoc
if you find an issue feel free to send a PR with fixes to it
hi wilker, i’ve had some commits merged already into the guide - just wanted to double check that this error is what i think it is
I agree that the update-in
in the function add-friend**
is wrong. There's no field-name
there so it won't even compile. The operation is to add a friend to an existing list of friends that a person has, so :person/friends
makes sense as the 'field name' to use.
@veddha.riady Are you using cljs or cljc for your file?
@veddha.riady @tony.kay ns declaration of the cljc file used
if you use upsert-css in that file, you’ll need to make it cljs-only #?(:cljs (injection/upsert-css ...))
@j1mr10rd4n Some content got moved around some time back, and I think I introduced some issues into the book. Thanks for proofreading and reporting. I know, in particular, some of the forms stuff got messed up.
no probs, i’m enjoying using fulcro in a greenfield react-native project at the moment - making heavy use of the dev guide for reference and keeping a branch with things i find as i go
@j1mr10rd4n I fixed that doc problem and did a few edits to the form state chapter as well.