This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-05-01
Channels
- # announcements (1)
- # babashka (73)
- # bangalore-clj (7)
- # beginners (295)
- # calva (128)
- # chlorine-clover (3)
- # cider (9)
- # cljsrn (10)
- # clojure (63)
- # clojure-europe (11)
- # clojurescript (1)
- # clojureverse-ops (3)
- # conjure (3)
- # emacs (7)
- # fulcro (13)
- # graalvm (8)
- # honeysql (16)
- # jobs-discuss (14)
- # malli (21)
- # meander (8)
- # onyx (1)
- # pathom (7)
- # portkey (2)
- # quil (3)
- # re-frame (4)
- # reagent (31)
- # reitit (2)
- # rewrite-clj (40)
- # shadow-cljs (29)
- # sql (20)
- # xtdb (13)
Hi, I'm new to fulcro and I have trouble understanding how mutations work. Is there some real-world or working example of a fulcro app with inputs and all that I could look at?
Also new to Fulcro. Started spending some time on the docs a couple of weeks ago. Besides the official docs, Tony’s grokking fulcro series has been extremely helpful for me: https://youtube.com/playlist?list=PLVi9lDx-4C_TBRiHfjnjXaK2J3BIUDPnf
I have a template that gives you a working app here:
https://github.com/dvingo/dv.fulcro-template
it uses clj -X:new
to generate a new project for you.
If for no other reason, you can use it to see a working example - it has a sample data model + ui that persists to a crux db.
If you do try it I'd love to hear any feedback you have (good or bad!).
@U01K11N9ZB6 @UPJP9G4G1 Actually there is a Tutorial Playlist für Fulcro 3. https://www.youtube.com/playlist?list=PLVi9lDx-4C_T7jkihlQflyqGqU4xVtsfi The "Grokking Fulcro" Series is more about the internal workings of Fulcro The 3rd video is about mutations: https://www.youtube.com/watch?v=KJsFLmkdRig You can find the files from the videos here: https://github.com/fulcrologic/video-series
Anything in particular you struggle with? I'm always looking for things to improve in https://fulcro-community.github.io/guides/tutorial-minimalist-fulcro/...
@U0522TWDA Maybe a gentle deployment guide for Fulcro would be helpful, especially for beginners coming from the JS ecosystem who are not familiar with Java's way of making a jar and serving it to the real web beyond localhost. Although this deployment knowledge is general, assumed to be "common sense" and not particular to Fulcro, for many such beginners (including myself), Fulcro is probably where they learn all about Clojure's way of web development. If people can not only run fulcro-template and fulcro-rad-demo, but also manage to deploy them (e.g. to heroku) and see the demo live, it will help them get the full picture of Fulcro's power and perhaps the additional motivation to commit into grokking Fulcro despite the learning curve. Thank you very much for your excellent contributions in building and expanding the Fulcro community.
@U0522TWDA What I struggle with in particular is how to put, say, an entire list of persons into the DB in your tutorial setup. It seems like merge-component is the solution here, but I can't do that in a mutation since it would create circular dependencies (the function requires the app and the component, the latter requires the mutation and now I'm in trouble, it seems). In my specific case, I upload a CSV into the browser. I turn it into a list of maps and now I want to somehow put it into my database. I could use swap!
however, that also means that I have to manually do all the stuff that, I thought, fulcro takes care of, or am I completely on the wrong path?
Load is the tool if the data is provided by a remote api. For the circular dependency there is a solution too, in the components namespace there are maps, functions to go from :my.ns/MyComponent to the component class. See https://book.fulcrologic.com/#CircularRefs