This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-12-21
Channels
- # adventofcode (24)
- # announcements (1)
- # beginners (122)
- # braveandtrue (9)
- # calva (45)
- # cider (24)
- # cljdoc (8)
- # cljs-dev (23)
- # clojure (112)
- # clojure-europe (2)
- # clojure-india (2)
- # clojure-italy (36)
- # clojure-nl (3)
- # clojure-spec (32)
- # clojure-uk (35)
- # clojurescript (52)
- # core-typed (12)
- # cursive (4)
- # datomic (61)
- # emacs (4)
- # figwheel-main (2)
- # fulcro (14)
- # hoplon (5)
- # hyperfiddle (1)
- # jobs-discuss (6)
- # kaocha (5)
- # leiningen (2)
- # nrepl (15)
- # off-topic (62)
- # re-frame (26)
- # reagent (39)
- # ring (3)
- # shadow-cljs (56)
- # spacemacs (8)
- # specter (5)
- # tools-deps (1)
- # yada (2)
hi folks! i'm trying to work through the fulcro tutorial at http://book.fulcrologic.com and running into problems getting the remote server to work. It does not appear that the :started-callback function is being executed from the client. I have slightly altered the code to display an popup alert when the callback is executed but it never is:
(defonce app (atom (fc/new-fulcro-client
:started-callback
(fn [app] ; (2)
(js/alert "hello!")
(df/load app :current-user root/Person)))))
where would i begin debugging this?@UAMEU7QV7 Did you mount the app ? new-fulcro-client alone will not trigger anything. The execution happens in mount.
Thanks. It turns out that was the problem.
If I have an edn prop in my components, that I want to make editable via a textarea, while keeping it checked via the form state clojure.spec helpers/etc. Is this the best solution?
:onChange #(do
(fm/set-string! this :ui/query-params-str :value %)
(when-let [v (util/safe-read-string %)]
(fm/set-value! this :ui/query-params v)))
This way the map the is updated and is synced
from the string value to the EDN one, when it is not partial like {:a "x
my problem with this is that parents of this component need to know about this -str
suffixed attribute as well if they want to modify this child of theirs
Hi I'm noticing an error when I try deploying a basic fulcro app with advanced compilation. I followed the tutorial and it works in dev mode, but I get the following in advanced compilation:
I'm going to guess that I need to require my mutations.clj namespace somewhere in my clojure code path.
Ok now I have a different problem. I've deployed the jar to a vps and I'm getting 403 forbidden when the app tries to reach /api on the server. Any ideas why that is?
I wonder if it could be that I need to set my legal-origin config setting in config/prod.edn