This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-03-07
Channels
- # announcements (12)
- # autochrome-github (4)
- # babashka (27)
- # babashka-sci-dev (2)
- # beginners (80)
- # calva (34)
- # cider (8)
- # clj-kondo (77)
- # clojars (34)
- # clojure (50)
- # clojure-europe (35)
- # clojure-nl (4)
- # clojure-uk (5)
- # clojured (2)
- # clojurescript (26)
- # core-async (4)
- # cursive (4)
- # datahike (4)
- # datomic (40)
- # emacs (7)
- # etaoin (1)
- # fulcro (12)
- # google-cloud (143)
- # hyperfiddle (1)
- # integrant (2)
- # jobs (1)
- # malli (15)
- # membrane (17)
- # off-topic (38)
- # pathom (1)
- # reagent (4)
- # releases (2)
- # remote-jobs (2)
- # sci (1)
- # shadow-cljs (10)
- # spacemacs (7)
- # tools-deps (5)
- # vim (6)
- # xtdb (37)
I am going to create a web app to display server side events (iot). So websockets. Is this template good(preferred) starting point? https://github.com/Folcon/fulcro-template What is best practice to start a new fulcro project in general? to clone a template? clone old project. Or to cherry pick from old projects?
Your link is a fork of https://github.com/fulcrologic/fulcro-template/.
Yep. Unless you need something specific from there, I'd guess it's better to stick to the official.
I found a typo in
https://github.com/fulcrologic/fulcro-websockets
wrong:
[com.fulcrologic.fulcro.networking.websockets-remote :as fws]))
correct:
[com.fulcrologic.fulcro.networking.websocket-remote :as fws]
In general, the official templates are the recommended starting point.
Hey, what is this line trying to communicate from the fulcro book?
Note that our mutation's symbol is actually `app.mutations/delete-person`, but the first layer of evaluation (calling a mutation as a function just returns the call itself) will rewrite it to `(app.mutations/delete-person …)`.
https://book.fulcrologic.com/#_handling_mutations
I don't understand the difference. I see a function call in the second case but I don't think that's the emphasis; or at least, I don't understand the emphasis.Oh, I think I understand. Where it says "rewrite it to" I read "it" as referring to app.mutations/delete-person
but it's actually referring to api/delete-person
.
Thanks @U051V5LLP and @U0522TWDA , I think I was stumbling on the phrasing since I didn't understand enough the context well enough.
just call a mutation as a fn from the REPL and you will see what it does. Experiencing is best