Fork me on GitHub
#fulcro
<
2021-10-10
>
sheluchin17:10:35

When using the Inspect Stream window, is there a way to get the path to the current object within its context?

Jakub Holý (HolyJak)17:10:19

what inspect stream? You mean in shadow-cljs? I would ask in #shadow-cljs

sheluchin17:10:46

True. Thanks.

Jakub Holý (HolyJak)19:10:03

Hello, dear friends! I am preparing my Fulcro workshop for re:Clojure (December 1st, 3-5pm UTC) and I have made a short intro that I am going to talk the participants through. What do you think about it? 🙏 Here: https://github.com/holyjak/fulcro-intro-wshop/blob/main/docs/INTRO.md

sheluchin20:10:27

I think it's a great intro. It took me a few passes, but that second diagram you have (from the Minimalist Tutorial) was very helpful in moving my understanding along when my intuition felt a bit stuck. Once I understood that pull-then-push composition - how Root pulls the queries from all its children and then pushes the query result data back out to them - as shown in the diagram, things kinda clicked for me.

🙏 1
dvingo16:10:18

It may be useful to provide further context that fulcro can run without a backend just using http calls to APIs you don't manage yourself. If the intended audience are people already in the clojure world you could add points of contrast to re-frame which I would assume some of the audience would be familiar with. One example: in re-frame you will eventually need to spend time thinking about such problems as described in this lengthy article: https://purelyfunctional.tv/guide/database-structure-in-re-frame/ in fulcro - indeed you will need to spend time learning the db concepts (ident, norm, denorm etc), but then you will get the "best practices" listed in that article "for free" - and even better practices, because the best practices there don't describe what happens with nested entities (an arbitrary graph)..

Jakub Holý (HolyJak)08:10:05

Hi @U051V5LLP, thank you. You make some good points. However I struggle with time here, since this is a workshop and I thus want to keep the talking part as short as possible. I will have a look at re-frame and see whether there are some places in the exercises where comparing the two would help the participants.

roklenarcic20:10:15

If I have a dashboard that has sections that have subsections how do I prevent the all that data to be loaded at top level df/load, do I dynamically set the query?

Jakub Holý (HolyJak)21:10:12

The common solution to that is dynamic routers. Other than that, you can use load! with :without See 3. and 4. under https://fulcro-community.github.io/guides/tutorial-minimalist-fulcro/index.html#_how_to