Fork me on GitHub
#fulcro
<
2023-10-04
>
mxfan20:10:45

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!

tony.kay20:10:52

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.

JAtkins20:10:16

Got a small PR to capture docstrings from the defattrs. https://github.com/fulcrologic/fulcro-rad/pull/119

🎉 1