Fork me on GitHub
#clojurescript
<
2023-08-23
>
vlad_poh21:08:39

I have a form with a dropdown. On loading the form i make a call to get the values for the dropdown then another call to get the values for the form. What is the right way to ensure that the dropdown is populated before i select the right value for it? I reuse the same dropdown on multiple forms so i can’t really daisy chain the calls.

phill22:08:18

The information state of the dropdown combines two sources. Populate the dropdown from that information state, whenever that information state changes.

👍 2
vlad_poh04:08:48

Thanks exactly what i needed to hear! Dont know how to do so yet but will be fun to figure out!