Reflex: Sending multiple http requests for a dynamic list of entries on event

85 Views Asked by At

Working with reflex-frp I have a list of entries which contain a text input. I also have a button that on click should trigger n http requests where n is the number of entries, and each request should contain the corresponding text. Therefore I have,

Event t [Text]

In order to send the requests I was trying to use

performRequestAsync :: MonadWidget t m => Event t XhrRequest -> m (Event t XhrResponse)

Therefore I need somehow a function that allows me to convert my event of list into a list of events:

Event t [Text] -> [Event t Text]

But I am not finding any way to do so. The most promising approach seems to involve the fan function and an EventSelector but I'm not being able to make much sense of it and there isn't much documentation online.

Is this possible?

0

There are 0 best solutions below