This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-05-08
Channels
- # architecture (20)
- # beginners (140)
- # cider (155)
- # cljsjs (1)
- # cljsrn (29)
- # clojure (53)
- # clojure-dev (9)
- # clojure-italy (40)
- # clojure-nl (13)
- # clojure-poland (4)
- # clojure-russia (8)
- # clojure-uk (51)
- # clojurescript (74)
- # cursive (36)
- # data-science (1)
- # datomic (3)
- # emacs (14)
- # fulcro (11)
- # graphql (2)
- # java (21)
- # javascript (2)
- # jobs (3)
- # nrepl (7)
- # off-topic (18)
- # om-next (1)
- # onyx (9)
- # portkey (8)
- # re-frame (72)
- # reagent (64)
- # reitit (4)
- # remote-jobs (1)
- # rum (1)
- # schema (1)
- # shadow-cljs (49)
- # slack-help (1)
- # spacemacs (8)
- # specter (7)
- # tools-deps (27)
- # vim (28)
@currentoor I did some experiments, the setup is no too complicated, I did using shadow-cljs, and the performance is pretty good
I have a question about the example in "A Complete UI Routing Example" section of fulcro book
in Root, the link with transact to Report A
looks like this:
(dom/a {:onClick #(prim/transact! this `[(r/route-to {:handler :status :route-params {:report-id :a}})])} "Status A")
and the Report component hardcoded that report-id (`:a`) in its initial state:
(defsc StatusReport [this {:keys [id]}]
{:initial-state {:id :a :page :status-report}
:query [:id :page :label]}
(dom/div {:style {:backgroundColor "yellow"}}
(dom/div (str "Status " id))))
(the same to its sibling GraphingReport
)
how do I modify StatusReport
so it gets the report id from route params instead of hardcoded value?
never mind, I figured it out. I didn't load the data into app state
The source code documentation for fulcro.websockets/make-websockets
states: "Anything injected as a dependency of this component is added to your parser environment (in addition to the parser itself)". Can anyone point me to where in the source this happens?
hi all, are there any known issues with using df/load-mutation
or df/load-action
with ptransact!
?
I just changed the fulcro dep of an app from 2.3.0
to 2.5.3
and am getting the following error. :
Exception in thread "main" java.lang.ExceptionInInitializerError
at clojure.main.<clinit>(main.java:20)
Caused by: java.lang.RuntimeException: No such var: fulcro.client.dom/macro-create-element*, compiling:(riverdb_ui/ui/user.cljc:14:5)
any ideas?just saw the note in the guide:
IMPORTANT
If you’re writing your UI in CLJC files in 2.5, then you need to make sure you use a conditional reader to pull in the proper server DOM functions for Clojure:
(ns app.ui
(:require #?(:clj [fulcro.client.dom-server :as dom] :cljs [fulcro.client.dom :as dom]))