This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-11-12
Channels
- # aleph (1)
- # announcements (13)
- # asami (4)
- # babashka (47)
- # beginners (22)
- # calva (11)
- # circleci (1)
- # clj-kondo (14)
- # clojure (43)
- # clojure-europe (43)
- # clojure-gamedev (1)
- # clojure-nl (1)
- # clojure-uk (6)
- # clojurescript (13)
- # core-async (5)
- # cursive (8)
- # datomic (20)
- # events (3)
- # fulcro (12)
- # graalvm (1)
- # graphql (4)
- # gratitude (3)
- # java (2)
- # juxt (2)
- # leiningen (12)
- # off-topic (30)
- # pathom (33)
- # pedestal (5)
- # podcasts-discuss (1)
- # polylith (14)
- # rdf (2)
- # re-frame (12)
- # reagent (3)
- # releases (2)
- # shadow-cljs (24)
- # spacemacs (13)
- # sql (2)
- # tools-build (16)
I've released the first version of a new Fulcro template with RAD support. It includes a script for renaming the top-level package to your own, and is much simpler to start with than the fulcro-rad-demo: https://github.com/fulcrologic/fulcro-rad-template
Just FYI: Fulcro and RAD seem to have a problem with the latest Clojurescript. I know exactly where the problem is, and what code is being generated incorrectly, but I'm still trying to figure out if it is something I've done wrong, or if it is a bug in the latest compiler. I do not recommend upgrading beyond shadow-cljs 2.15.12 or cljs 1.10.866 until this is resolved.
Found a way to make it work. Released Fulcro 3.5.8 that should take care of it.
I’ve been learning fulcro and first off, it’s amazing, but I’m struggling with one element of my usual workflow in something like re-frame, which is heavy use of the REPL. Is there an idiomatic way to get a reasonable stub for values like this
so I can eval arbitrary things inside the components?
Not sure it's idiomatic, but the inline def trick can be helpful for that.
(def this-particular-thing this)
.
that one works, there's also a hashmap of component instances in the app itself:
https://book.fulcrologic.com/#_fulcro_application_whats_in_there
see ::indexes
If you use(d) https://fulcro-community.github.io/guides/tutorial-minimalist-fulcro/ I'd interested in hearing how it worked for you 🙏 I use repl a lot but rarely need 'this'. For transact! you can simply use the 'app'. What else do you need it for? There is also something like comp/class->any and similar to get the instance of a component
This is also super-handy: https://github.com/vvvvalvalval/scope-capture I use it more in clj than cljs, but it works for both.
Then of course if you're using shadow-cljs and just need to explore some data in a component, you can use tap>
.
@U0522TWDA I’m still trying to grok how everything fits together, so being able to use stuff like comp/get-query
in context would be helpful for me.
get-query
takes class not an instance so you do not need this
for that
My https://www.eventbrite.com/e/reclojure-introduction-to-fulcro-workshop-tickets-188718210247 on Dec 1st could be perhaps useful to you. If you cannot make it, you can try to do it on your own, following the https://github.com/holyjak/fulcro-intro-wshop/blob/main/docs/Workshop.adoc. This will teach you a lot about the browser and REPL tooling that we used when making and troubleshooting Fulcro apps.