This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-08-16
Channels
- # aleph (1)
- # architecture (5)
- # beginners (43)
- # boot (23)
- # cider (5)
- # cljs-dev (143)
- # clojure (42)
- # clojure-austin (4)
- # clojure-dusseldorf (14)
- # clojure-italy (15)
- # clojure-norway (1)
- # clojure-russia (10)
- # clojure-spec (41)
- # clojure-uk (70)
- # clojurescript (262)
- # cursive (3)
- # data-science (18)
- # datomic (66)
- # figwheel (1)
- # fulcro (39)
- # hoplon (21)
- # jobs-rus (1)
- # juxt (4)
- # lein-figwheel (2)
- # leiningen (4)
- # lumo (26)
- # off-topic (4)
- # om (6)
- # onyx (19)
- # parinfer (50)
- # pedestal (9)
- # portkey (10)
- # re-frame (41)
- # schema (5)
- # spacemacs (2)
- # yada (35)
@tony.kay in my :started-callback
, the :post-mutation
is not causing the root to re-render
it should because it modifies the part of app state that root queries for
any ides what could be wrong?
there is no way for fulcro to know what you need re-rendered on post mutation. Use the :refresh option (it adds follow-on reads)
yeah i remember seeing that in the code base, thanks
remember, Om Next does not do dirty checking for refresh. It does dirty checking to short-circuit refreshes it thinks might be needed. A little different
good point
yeah that worked like a charm
thanks
Just pushed on develop: the module support for i18n is finished, and there is a demo in demos, and improved docs in devguide. This won’t work until the next cljs release, but if you wanted to play against the tip of master clojurescript, you can. Pro Tip: To play with latest cljs compiler:
git clone
cd clojurescript
script/build
Look at the version that gets installed into your local maven repo, and use that for your cljs version in your deps.@tony.kay hey, saw this at the #announcements channel: https://docs.google.com/spreadsheets/d/1Y97YP_coSYuUVt1Gk2m4gokir2s9_K3w-lvwd4qB6Js/edit#gid=864782811
maybe worth adding Fulcro there
I am building my first fulcro app and I am very pleased so far. I am struggling with something that may be obvious... I have a page showing a table with an edit button on each row. I want the edit button to replace the table with an form for editing the data represented by the row (no problem with getting the row data). How would you suggest I structure this in fulcro?
I’d put a UI router above it. One route is the table, the other is the editor. Switch the UI route with a mutation that also tells the form what it is editing (e.g. overlay the form component (via ident) with the entity representation, use init-form on it, and point the router at the ident of the form)
UI routers can use parameters, which can set the ident to a specific table/id in the db: [:entity/by-id :param/id]
I just added a demo (on develop branch of fulcro) that might help…it is side-by-side, but the concepts are similar:
Excellent. I will look at the demo. Keep up the good work! Thank you.
Oh, @mandor2017 develop
is currently pinned to a non-released version of cljs
No problem.
see my comments from yesterday if you want to run it….I think that demo is also on master (the current release). If so, that would be easier to use.
If any of my instructions above are unclear to you, feel free to ask. I just threw a lot of things at you that you may not know yet 🙂
OK. Thanks again.
just wondering. Looking at fulcro-css, I see {:keys [items-wrapper]} (css/get-classnames ListComponent)
inside the render function.
For performance, should (css/get-classnames ListComponent)
be outside of the render ?
Also finding I end up with 10-20+ classnames for some components (page layout mostly). Is there a more elegant way than doing (def css (css/get-classnames ListComponent))
and then {:className (:mystyle css)}
?