This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-09-05
Channels
- # announcements (4)
- # beginners (21)
- # calva (3)
- # clj-http (3)
- # clj-kondo (10)
- # clojars (5)
- # clojure (4)
- # clojure-europe (5)
- # clojurescript (71)
- # datomic (3)
- # fulcro (18)
- # helix (5)
- # introduce-yourself (2)
- # missionary (1)
- # off-topic (19)
- # polylith (21)
- # reagent (3)
- # shadow-cljs (28)
- # tools-deps (6)
- # xtdb (30)
Somebody was wrong on the internet... https://clojureverse.org/t/what-are-the-best-web-frameworks-for-clojure-script/8103/13?u=holyjak 😅
I just finished the Minimalist Fulcro Tutorial exercises. The experience was immensely useful. One thing beyond basic Fulcro concepts that it helped with is how to use the Fulcro Inspect tools. Specifically, I didn't know how to get data into the EQL tab other than typing it or copying it from somewhere. (This is probably in the Developers Guide, or in one Tony's videos, but if so, I missed it.) In the exercise comments where @holyjak says:
;; From Inspect's Network use the [Send to query] button to show it in the EQL tab, run it.
You might add: ;; If you don't see the [Send to query] button, click on a Request.
That is great to hear. thank you! I have updated the description now. You might also want to check out https://www.youtube.com/playlist?list=PLYvJiiE4TAijBAvO-R0PO8plSto4wtoQu to see how I use Fulcro Inspect in practice.
@holyjak asked for suggestions about additional good exercised for the Minimalist Fulcro Tutorial. I had in mind incremental loading of big trees of data. Incremental loading is probably discussed adequately in the Developer Guide, but not with recursive queries, and incremental expansion of a UI tree, I think. If that seems like too much an edge case, maybe something simpler with trees.
Thank you, that sounds interesting. Could you imagine a little more in detail what you have in mind? A concrete use case would be super useful 🙏
It would also help if you explained why this would be valuable to you. The tutorial talks about :without and load-field! Do you mean you would like to see them in practice, combined with a user action that triggers the "expansion" of the UI tree?
@U0D4UL3U2 I have an example where I implemented a nested comment section. It uses recursion and loads comments „on-demand“. If that’s what you mean with „big-trees“. I don‘t do garbage collection for now. You can find everything here: https://github.com/hhucn/decide3/blob/master/src/main/decide/models/argumentation/ui.cljs (I use some unusual terms motivated by my domain)
And I don't paginate for now.
@U4VT24ZM3 Decide seems as a worthy addition to https://fulcro-community.github.io/main/awesome-fulcro/README.html#_real_apps, no?
If you think so. 🙂 But I wouldn't describe it as "best practice", though, even going so far to say: "I burnt my finger on some of this code (more than once)". 🙂 I am a doctoral student, so my interest (or better, the interest of my supervisor) is to get things running as fast as possible. Stable enough to survive an experiment, and then features get scrapped and/or redone in a completely different way.
Just add that to the description :-)
Maybe I reference some parts of the application, that can function as an example. Like this ns to set metadata like the tab title, or language tag: https://github.com/hhucn/decide3/blob/master/src/main/decide/ui/meta.cljs Or this ns to show snackbars one by one. https://github.com/hhucn/decide3/blob/master/src/main/decide/ui/components/snackbar.cljs
These are small and independent of the works of my domain model.
I would refer the whole app, as a "production app", though with the disclaimer you provided above. Referring also to selected, especially interesting parts of the app is very valuable too.
I am looking at decide now. In fact, I cloned it and am running it. I concur with holyjak's comment about real_apps. IMO, it doesn't have to be perfect, just pointed in roughly the right direction. It is a very nice example.
In response to @holyjak asking for more detail. Perhaps I should have tried :without and load-field! before suggesting; it might be more straightforward than I imagine. My application works with messaging schema like http://www.datypic.com/sc/ubl20/e-ns19_Invoice.html (that's not mine, just an example EDI-like message). The challenge is that there can be thousands of leaves on such trees. But maybe it is more a UI design challenge than an interesting Fulcro coding challenge.
Try it and let me know whether we can get a worthwhile exercise out of it or not!