This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-10-04
Channels
- # announcements (6)
- # babashka (7)
- # beginners (2)
- # biff (5)
- # calva (2)
- # cherry (17)
- # cider (3)
- # clj-kondo (8)
- # clojure (202)
- # clojure-brasil (8)
- # clojure-europe (20)
- # clojure-norway (23)
- # clojure-uk (4)
- # clojuredesign-podcast (5)
- # conjure (1)
- # cursive (9)
- # eastwood (22)
- # events (8)
- # fulcro (3)
- # hyperfiddle (22)
- # introduce-yourself (7)
- # lsp (67)
- # malli (1)
- # matrix (1)
- # meander (6)
- # off-topic (76)
- # pedestal (8)
- # polylith (17)
- # quil (12)
- # re-frame (2)
- # reagent (8)
- # releases (3)
- # shadow-cljs (67)
- # sql (93)
- # squint (39)
- # tools-deps (46)
- # vim (7)
I have a defsc SearchForm where I input query parameters. When pushing this button (dom/div :.ui.primary.button {:onClick (fn [] (df/load! this :itinerary/search Itinerary {:params {:origin-city origin-city :destination-city destination-city :date-str (subs date-str 0 10)}}))} "Load itineraries") it correctly fetches records from Datomic and puts it in the client DB under :itinerary/id. Now the question is: How do I display this data in my report/defsc-report ItineraryList? Or do I have to use a form for that!
The defsc-report macro generates a component that is integrated with the dynamic-routing system to auto-start a state machine for managing the logic (loading/paginating, etc). You don’t write any code to load the data. See the fulcro-rad-demo.
Got a small PR to capture docstrings from the defattrs. https://github.com/fulcrologic/fulcro-rad/pull/119