This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-03-09
Channels
- # aws (51)
- # beginners (57)
- # calva (10)
- # chlorine-clover (7)
- # cider (20)
- # clj-kondo (55)
- # clojure (43)
- # clojure-europe (9)
- # clojure-italy (1)
- # clojure-nl (5)
- # clojure-spec (8)
- # clojure-uk (71)
- # clojurescript (33)
- # core-async (22)
- # cursive (20)
- # datomic (3)
- # emacs (8)
- # figwheel-main (8)
- # fulcro (13)
- # garden (2)
- # graalvm (60)
- # graphql (26)
- # jobs (6)
- # joker (6)
- # kaocha (2)
- # lambdaisland (5)
- # malli (36)
- # off-topic (9)
- # portkey (15)
- # re-frame (3)
- # reagent (25)
- # remote-jobs (4)
- # spacemacs (3)
- # sql (111)
- # tree-sitter (29)
- # uncomplicate (3)
- # xtdb (2)
I have a page with many components showing various data. I want to show the page as soon as some "core" data is loaded while data for the other components is still being loaded in parallel (ie. component X does not need to wait for component Y).
What is the Fulcro way to implement it? I could follow http://book.fulcrologic.com/#IncrementalLoading and :without
the secondary data but how do I load this additional data? Should each of the components load-field!
inside :componentWillMount
?
issue your initial loads in app start, and have your app’s root use some kind of top-level flag to prevent rendering
Then the post mutation can change the flag to render, and issue the additional loads
load-field!
is just a convenience that focuses the query. Just look at its implementation. There are utilities like focus-query
that can be used to create the properly-pruned query
thank you!
@tony.kay I see the docstring of defmutation
doesn't really describe ok-action
, error-action
, and the content of env
. Shouldn't it? I can write it based on http://book.fulcrologic.com/#_the_sections and send a PR...
Where is the RAD book? Or is it now integrated into the normal book? I am especially interested in reports...