Does anyone use antizer with rum? I’m looking for some help making an antd form reactive - i.e. I want its field values to update when they change in the db atom.
Also, how to initialise the form fields. I feel that (ant/create-form patient-form :props {:nhs-number "123456"})
should do something here…
Ah, I see that :nhs-number ends up in rum component state, rather than in the form field :nhs-number
Using this for initialisation:
(ant/form {:layout "horizontal"}
(ant/form-item (labelled "NHS Number")
(ant/decorate-field my-form "nhs-number" {:initial-value (:nhs-number state) } (ant/input))))
OK. That’ll do - I don’t need it to react, only to initialise from the database correctly.